Skip to content

Commit c62efed

Browse files
committed
Added make wrapper
1 parent e219e6f commit c62efed

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

flake.nix

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,16 @@
2626
src = craneLib.cleanCargoSource ./.;
2727
strictDeps = true;
2828

29-
buildInputs = with pkgs; [ libxkbcommon ];
29+
buildInputs = with pkgs; [ makeWrapper libxkbcommon ];
3030
};
3131

3232
my-crate = craneLib.buildPackage (
3333
commonArgs
3434
// {
3535
cargoArtifacts = craneLib.buildDepsOnly commonArgs;
36-
LD_LIBRARY_PATH = libPath;
36+
postInstall = ''
37+
wrapProgram "$out/bin/waystart" --prefix LD_LIBRARY_PATH : "${libPath}"
38+
'';
3739
}
3840
);
3941
in

0 commit comments

Comments
 (0)