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 {
|
packages.x86_64-linux = rec {
|
||||||
oscuro = let
|
oscuro = let
|
||||||
common = {
|
common = {
|
||||||
pname = "oscuro";
|
|
||||||
version = "0.1.0";
|
|
||||||
|
|
||||||
src = pkgs.lib.cleanSourceWith {
|
src = pkgs.lib.cleanSourceWith {
|
||||||
src = ./.;
|
src = ./.;
|
||||||
filter = path: type: (craneLib.filterCargoSources path type);
|
filter = path: type: (craneLib.filterCargoSources path type);
|
||||||
@ -46,14 +43,23 @@
|
|||||||
|
|
||||||
strictDeps = true;
|
strictDeps = true;
|
||||||
|
|
||||||
nativeBuildInputs = [pkgs.pkg-config];
|
nativeBuildInputs = [pkgs.pkg-config pkgs.makeWrapper];
|
||||||
|
|
||||||
buildInputs = [pkgs.openssl];
|
buildInputs = [pkgs.openssl];
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoArtifacts = craneLib.buildDepsOnly common;
|
cargoArtifacts = craneLib.buildDepsOnly common;
|
||||||
in
|
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;
|
default = oscuro;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user