Commit 6b006fc4 authored by Tomodachi94's avatar Tomodachi94
Browse files

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.
parent efd51885
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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/