fix binary wrapper
This commit is contained in:
parent
42952ce9cd
commit
a7bee7331b
16
flake.nix
16
flake.nix
@ -36,9 +36,6 @@
|
||||
packages.x86_64-linux = rec {
|
||||
oscuro = let
|
||||
common = {
|
||||
pname = "oscuro";
|
||||
version = "0.1.0";
|
||||
|
||||
src = pkgs.lib.cleanSourceWith {
|
||||
src = ./.;
|
||||
filter = path: type: (craneLib.filterCargoSources path type);
|
||||
@ -46,14 +43,23 @@
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = [pkgs.pkg-config];
|
||||
nativeBuildInputs = [pkgs.pkg-config pkgs.makeWrapper];
|
||||
|
||||
buildInputs = [pkgs.openssl];
|
||||
};
|
||||
|
||||
cargoArtifacts = craneLib.buildDepsOnly common;
|
||||
in
|
||||
craneLib.buildPackage (common // {inherit cargoArtifacts;});
|
||||
craneLib.buildPackage (common
|
||||
// rec {
|
||||
pname = "oscuro";
|
||||
version = "0.1.0";
|
||||
inherit cargoArtifacts;
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/${pname} \
|
||||
--prefix LD_LIBRARY_PATH : ${pkgs.lib.makeLibraryPath common.buildInputs} \
|
||||
'';
|
||||
});
|
||||
|
||||
default = oscuro;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user