Merge pull request #130264 from siraben/powder-update

the-powder-toy: 95.0 -> 96.0.348
This commit is contained in:
Ben Siraphob 2021-07-15 19:43:08 +07:00 committed by GitHub
commit 582368fc05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,28 +1,27 @@
{ lib, stdenv, fetchFromGitHub, scons, pkg-config, SDL2, lua, fftwFloat,
zlib, bzip2, curl, darwin }:
{ lib, stdenv, fetchFromGitHub, meson, luajit, ninja, pkg-config
, python3, SDL2, lua, fftwFloat, zlib, bzip2, curl, darwin }:
stdenv.mkDerivation rec {
pname = "the-powder-toy";
version = "95.0";
version = "96.0.348";
src = fetchFromGitHub {
owner = "The-Powder-Toy";
repo = "The-Powder-Toy";
rev = "v${version}";
sha256 = "18rp2g1mj0gklra06wm9dm57h73hmm301npndh0y8ap192i5s8sa";
sha256 = "sha256-PAnjNeqGJPW7TeoIsaOnuOb1loyKs8pjBseKoD0CvQU=";
};
nativeBuildInputs = [ scons pkg-config ];
nativeBuildInputs = [ meson ninja pkg-config python3 ];
propagatedBuildInputs = lib.optionals stdenv.isDarwin
[ darwin.apple_sdk.frameworks.Cocoa ];
buildInputs = [ SDL2 lua fftwFloat zlib bzip2 curl ];
buildInputs = [ luajit SDL2 lua fftwFloat zlib bzip2 curl ];
installPhase = ''
install -Dm 755 build/powder* "$out/bin/powder"
install -Dm 755 powder $out/bin/powder
'';
propagatedBuildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Cocoa ];
enableParallelBuilding = true;
meta = with lib; {