2019-05-24 14:12:18 +02:00
|
|
|
{ stdenv, fetchFromGitHub, scons, pkgconfig, SDL2, lua, fftwFloat, zlib, bzip2 }:
|
2015-04-08 00:44:39 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "the-powder-toy-${version}";
|
2019-05-24 14:12:18 +02:00
|
|
|
version = "94.1";
|
2016-08-13 02:15:04 +02:00
|
|
|
|
2015-04-08 00:44:39 +02:00
|
|
|
src = fetchFromGitHub {
|
2019-01-03 13:36:24 +01:00
|
|
|
owner = "ThePowderToy";
|
2015-04-08 00:44:39 +02:00
|
|
|
repo = "The-Powder-Toy";
|
|
|
|
rev = "v${version}";
|
2019-05-24 14:12:18 +02:00
|
|
|
sha256 = "0w3i4zjkw52qbv3s9cgcwxrdbb1npy0ka7wygyb76xcb17bj0l0b";
|
2015-04-08 00:44:39 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ scons pkgconfig ];
|
|
|
|
|
2019-05-24 14:12:18 +02:00
|
|
|
buildInputs = [ SDL2 lua fftwFloat zlib bzip2 ];
|
2015-04-08 00:44:39 +02:00
|
|
|
|
2018-11-12 03:52:07 +01:00
|
|
|
sconsFlags = "--tool=";
|
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";
|
2017-08-01 22:03:30 +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;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|