the-powder-toy: 94.1 -> 95.0

gstqt5
Ben Siraphob 2020-08-08 07:57:13 +07:00
parent 3735c9ef90
commit f20d864c9f
1 changed files with 10 additions and 7 deletions

View File

@ -1,21 +1,24 @@
{ stdenv, fetchFromGitHub, scons, pkgconfig, SDL2, lua, fftwFloat, zlib, bzip2 }:
{ stdenv, fetchFromGitHub, scons, pkgconfig, SDL2, lua, fftwFloat,
zlib, bzip2, curl, darwin }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "the-powder-toy"; pname = "the-powder-toy";
version = "94.1"; version = "95.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ThePowderToy"; owner = "The-Powder-Toy";
repo = "The-Powder-Toy"; repo = "The-Powder-Toy";
rev = "v${version}"; rev = "v${version}";
sha256 = "0w3i4zjkw52qbv3s9cgcwxrdbb1npy0ka7wygyb76xcb17bj0l0b"; sha256 = "18rp2g1mj0gklra06wm9dm57h73hmm301npndh0y8ap192i5s8sa";
}; };
nativeBuildInputs = [ scons pkgconfig ]; nativeBuildInputs = [ scons pkgconfig ];
buildInputs = [ SDL2 lua fftwFloat zlib bzip2 ]; propagatedBuildInputs = stdenv.lib.optionals stdenv.isDarwin
[ darwin.apple_sdk.frameworks.Cocoa ];
sconsFlags = "--tool="; buildInputs = [ SDL2 lua fftwFloat zlib bzip2 curl ];
installPhase = '' installPhase = ''
install -Dm 755 build/powder* "$out/bin/powder" install -Dm 755 build/powder* "$out/bin/powder"
@ -28,6 +31,6 @@ stdenv.mkDerivation rec {
homepage = "http://powdertoy.co.uk/"; homepage = "http://powdertoy.co.uk/";
platforms = [ "i686-linux" "x86_64-linux" "x86_64-darwin" ]; platforms = [ "i686-linux" "x86_64-linux" "x86_64-darwin" ];
license = licenses.gpl3; license = licenses.gpl3;
maintainers = with maintainers; [ abbradar ]; maintainers = with maintainers; [ abbradar siraben ];
}; };
} }