From 6b006fc4defe3c4be59a896b51b4e611440e4761 Mon Sep 17 00:00:00 2001 From: Tomo <68489118+Tomodachi94@users.noreply.github.com> Date: Sat, 4 May 2024 11:55:12 -0700 Subject: [PATCH] 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. --- pkgs/applications/emulators/craftos-pc/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/emulators/craftos-pc/default.nix b/pkgs/applications/emulators/craftos-pc/default.nix index 9ad54f00d4e8..e81bfeb9978e 100644 --- a/pkgs/applications/emulators/craftos-pc/default.nix +++ b/pkgs/applications/emulators/craftos-pc/default.nix @@ -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/