2020-08-08 02:57:13 +02:00
|
|
|
|
|
|
|
{ stdenv, fetchFromGitHub, scons, pkgconfig, SDL2, lua, fftwFloat,
|
|
|
|
zlib, bzip2, curl, darwin }:
|
2015-04-08 00:44:39 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "the-powder-toy";
|
2020-08-08 02:57:13 +02:00
|
|
|
version = "95.0";
|
2016-08-13 02:15:04 +02:00
|
|
|
|
2015-04-08 00:44:39 +02:00
|
|
|
src = fetchFromGitHub {
|
2020-08-08 02:57:13 +02:00
|
|
|
owner = "The-Powder-Toy";
|
2015-04-08 00:44:39 +02:00
|
|
|
repo = "The-Powder-Toy";
|
|
|
|
rev = "v${version}";
|
2020-08-08 02:57:13 +02:00
|
|
|
sha256 = "18rp2g1mj0gklra06wm9dm57h73hmm301npndh0y8ap192i5s8sa";
|
2015-04-08 00:44:39 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ scons pkgconfig ];
|
|
|
|
|
2020-08-08 02:57:13 +02:00
|
|
|
propagatedBuildInputs = stdenv.lib.optionals stdenv.isDarwin
|
|
|
|
[ darwin.apple_sdk.frameworks.Cocoa ];
|
2015-04-08 00:44:39 +02:00
|
|
|
|
2020-08-08 02:57:13 +02:00
|
|
|
buildInputs = [ SDL2 lua fftwFloat zlib bzip2 curl ];
|
2015-04-08 00:44:39 +02:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm 755 build/powder* "$out/bin/powder"
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A free 2D physics sandbox game";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://powdertoy.co.uk/";
|
2018-03-09 14:19:35 +01:00
|
|
|
platforms = [ "i686-linux" "x86_64-linux" "x86_64-darwin" ];
|
2015-04-08 00:44:39 +02:00
|
|
|
license = licenses.gpl3;
|
2020-08-08 02:57:13 +02:00
|
|
|
maintainers = with maintainers; [ abbradar siraben ];
|
2015-04-08 00:44:39 +02:00
|
|
|
};
|
|
|
|
}
|