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