nixpkgs/pkgs/games/the-powder-toy/default.nix

36 lines
878 B
Nix
Raw Normal View History

2015-04-08 00:44:39 +02:00
{ stdenv, fetchFromGitHub, scons, pkgconfig, SDL, lua, fftwFloat }:
2016-04-25 15:15:44 +02:00
let version = "91.3.328";
2015-04-08 00:44:39 +02:00
in
stdenv.mkDerivation rec {
name = "the-powder-toy-${version}";
src = fetchFromGitHub {
owner = "simtr";
repo = "The-Powder-Toy";
rev = "v${version}";
2016-04-25 15:15:44 +02:00
sha256 = "0krg4d2m8cnfabm5qq7wr1y53h21i49xjcggzg98xjd0972zvfrk";
2015-04-08 00:44:39 +02:00
};
patches = [ ./fix-env.patch ];
nativeBuildInputs = [ scons pkgconfig ];
buildInputs = [ SDL lua fftwFloat ];
buildPhase = "scons DESTDIR=$out/bin --tool='' -j$NIX_BUILD_CORES";
installPhase = ''
install -Dm 755 build/powder* "$out/bin/powder"
'';
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "A free 2D physics sandbox game";
2015-07-28 10:57:29 +02:00
homepage = http://powdertoy.co.uk/;
2015-04-08 00:44:39 +02:00
platforms = platforms.unix;
license = licenses.gpl3;
maintainers = with maintainers; [ abbradar ];
};
}