the-powder-toy: 95.0 -> 96.0.348

This commit is contained in:
Ben Siraphob 2021-07-15 17:59:59 +07:00
parent 7c9470a061
commit 0e06fbbfa0

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; {