craftos-pc: reduce runtime dependencies

patchelf is only used in the installPhase and is not used in the program
itself, so we move it to nativeBuildInputs to reduce the closure size.
This commit is contained in:
Tomo 2024-05-04 11:55:12 -07:00
parent efd518852d
commit 6b006fc4de

View file

@ -40,7 +40,8 @@ stdenv.mkDerivation rec {
hash = "sha256-ozebHgUgwdqYtWAyL+EdwpjEvZC+PkWcLYCPWz2FjSw=";
};
buildInputs = [ patchelf poco openssl SDL2 SDL2_mixer ncurses libpng pngpp libwebp ];
nativeBuildInputs = [ patchelf ];
buildInputs = [ poco openssl SDL2 SDL2_mixer ncurses libpng pngpp libwebp ];
preBuild = ''
cp -R ${craftos2-lua}/* ./craftos2-lua/