Compare commits

..
Author SHA1 Message Date
57ad7dfb1e
build: reduce indirection slightly 2026-07-31 00:05:48 -07:00
b8b4d8698c
build: remove no-op wrapper argument 2026-07-31 00:03:35 -07:00

View file

@ -45,8 +45,6 @@
src = ./.;
};
LD_LIBRARY_PATH = lib.makeLibraryPath dlDeps;
# Build *just* the cargo dependencies,
# to reuse them for build and test derivations.
cargoArtifacts = craneLib.buildDepsOnly commonArgs;
@ -102,7 +100,7 @@
ln -s "${desktopItem}"/share/applications/* "$out/share/applications/"
''
+ lib.optionalString pkgs.stdenv.hostPlatform.isLinux /* sh */ ''
wrapProgram $out/bin/${name} --inherit-argv0 \
wrapProgram $out/bin/${name} \
--prefix PATH : ${lib.makeBinPath [ pkgs.zenity ]}
'';
}
@ -123,7 +121,7 @@
};
devShells.default = craneLib.devShell {
inherit LD_LIBRARY_PATH;
LD_LIBRARY_PATH = lib.makeLibraryPath dlDeps;
inputsFrom = [ crate ];
packages = [ pkgs.rust-analyzer ];