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

34 lines
856 B
Nix
Raw Normal View History

2016-08-22 13:55:56 +00:00
{ stdenv, fetchFromGitHub, scons, pkgconfig, SDL, lua, fftwFloat, zlib, bzip2 }:
2015-04-07 22:44:39 +00:00
stdenv.mkDerivation rec {
name = "the-powder-toy-${version}";
2019-01-03 12:18:13 +00:00
version = "93.3";
2016-08-13 00:15:04 +00:00
2015-04-07 22:44:39 +00:00
src = fetchFromGitHub {
owner = "ThePowderToy";
2015-04-07 22:44:39 +00:00
repo = "The-Powder-Toy";
rev = "v${version}";
sha256 = "1bg1y13kpqxx4mpncxvmg8w02dyqyd9hl43rwnys3sqrjdm9k02j";
2015-04-07 22:44:39 +00:00
};
nativeBuildInputs = [ scons pkgconfig ];
2016-08-22 13:55:56 +00:00
buildInputs = [ SDL lua fftwFloat zlib bzip2 ];
2015-04-07 22:44:39 +00:00
sconsFlags = "--tool=";
2015-04-07 22:44:39 +00:00
installPhase = ''
install -Dm 755 build/powder* "$out/bin/powder"
'';
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "A free 2D physics sandbox game";
homepage = http://powdertoy.co.uk/;
platforms = [ "i686-linux" "x86_64-linux" "x86_64-darwin" ];
2015-04-07 22:44:39 +00:00
license = licenses.gpl3;
maintainers = with maintainers; [ abbradar ];
};
}