cosmic-files: bin-src -> cargo-target-dir

Avoids hardcoding the path to the binary, making
the packaging more robust.
This commit is contained in:
Heitor Augusto
2025-09-30 18:41:27 -03:00
parent 25b335a430
commit bfb9e3ee6c

View File

@@ -40,11 +40,8 @@ rustPlatform.buildRustPackage (finalAttrs: {
"prefix"
(placeholder "out")
"--set"
"bin-src"
"target/${stdenv.hostPlatform.rust.cargoShortTarget}/release/cosmic-files"
"--set"
"applet-src"
"target/${stdenv.hostPlatform.rust.cargoShortTarget}/release/cosmic-files-applet"
"cargo-target-dir"
"target/${stdenv.hostPlatform.rust.cargoShortTarget}"
];
# This is needed since by setting cargoBuildFlags, it would build both the applet and the main binary