summary refs log tree commit diff
path: root/pkgs/games/the-powder-toy/default.nix
diff options
context:
space:
mode:
authorBen Siraphob <bensiraphob@gmail.com>2020-08-08 07:57:13 +0700
committerBen Siraphob <bensiraphob@gmail.com>2020-08-08 07:57:13 +0700
commitf20d864c9f7e470a91e6b6e7cf270014f3d3bedd (patch)
tree360e6d2f6d0f63973133c0806ffcaf7e469d00bc /pkgs/games/the-powder-toy/default.nix
parent3735c9ef908eceaf348215c7669870945eb3262a (diff)
downloadnixpkgs-f20d864c9f7e470a91e6b6e7cf270014f3d3bedd.tar
nixpkgs-f20d864c9f7e470a91e6b6e7cf270014f3d3bedd.tar.gz
nixpkgs-f20d864c9f7e470a91e6b6e7cf270014f3d3bedd.tar.bz2
nixpkgs-f20d864c9f7e470a91e6b6e7cf270014f3d3bedd.tar.lz
nixpkgs-f20d864c9f7e470a91e6b6e7cf270014f3d3bedd.tar.xz
nixpkgs-f20d864c9f7e470a91e6b6e7cf270014f3d3bedd.tar.zst
nixpkgs-f20d864c9f7e470a91e6b6e7cf270014f3d3bedd.zip
the-powder-toy: 94.1 -> 95.0
Diffstat (limited to 'pkgs/games/the-powder-toy/default.nix')
-rw-r--r--pkgs/games/the-powder-toy/default.nix17
1 files changed, 10 insertions, 7 deletions
diff --git a/pkgs/games/the-powder-toy/default.nix b/pkgs/games/the-powder-toy/default.nix
index 72b4bf20383..af392eca8d8 100644
--- a/pkgs/games/the-powder-toy/default.nix
+++ b/pkgs/games/the-powder-toy/default.nix
@@ -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 {
   pname = "the-powder-toy";
-  version = "94.1";
+  version = "95.0";
 
   src = fetchFromGitHub {
-    owner = "ThePowderToy";
+    owner = "The-Powder-Toy";
     repo = "The-Powder-Toy";
     rev = "v${version}";
-    sha256 = "0w3i4zjkw52qbv3s9cgcwxrdbb1npy0ka7wygyb76xcb17bj0l0b";
+    sha256 = "18rp2g1mj0gklra06wm9dm57h73hmm301npndh0y8ap192i5s8sa";
   };
 
   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 = ''
     install -Dm 755 build/powder* "$out/bin/powder"
@@ -28,6 +31,6 @@ stdenv.mkDerivation rec {
     homepage = "http://powdertoy.co.uk/";
     platforms = [ "i686-linux" "x86_64-linux" "x86_64-darwin" ];
     license = licenses.gpl3;
-    maintainers = with maintainers; [ abbradar ];
+    maintainers = with maintainers; [ abbradar siraben ];
   };
 }