include runtime dependencies in default package

This commit is contained in:
Chance 2025-03-25 16:00:12 -04:00 committed by BitSyndicate
parent 5c438b349e
commit e158c4bb63
Signed by: bitsyndicate
GPG key ID: 443E4198D6BBA6DE
2 changed files with 20 additions and 2 deletions

View file

@ -5,7 +5,12 @@
bash,
makeWrapper,
dav1d,
vulkan-loader,
libGL,
wayland,
pkg-config,
libxkbcommon,
pkgs,
}: let
version = (builtins.fromTOML (builtins.readFile ./engine/Cargo.toml)).package.version;
src = nix-gitignore.gitignoreSource [] ./.;
@ -18,14 +23,26 @@ in
makeWrapper
pkg-config
];
buildInputs = [
buildInputs = with pkgs; [
wayland
vulkan-loader
libxkbcommon
libGL
libxkbcommon
xorg.libXcursor
xorg.libXrandr
xorg.libXi
xorg.libX11
xorg.libxcb
bash
dav1d
];
doCheck = false;
LD_LIBRARY_PATH = "${pkgs.lib.makeLibraryPath buildInputs}";
fixupPhase = ''
wrapProgram $out/bin/${pname} --set PATH ${bash}/bin:\$PATH
wrapProgram $out/bin/${pname} --set PATH ${bash}/bin:\$PATH --set LD_LIBRARY_PATH ${pkgs.lib.makeLibraryPath buildInputs}
'';
meta = {

View file

@ -33,6 +33,7 @@
};
buildInputs = with pkgs; [
vulkan-loader
libGL
wayland
libxkbcommon
xorg.libXcursor