forked from mirrors/nixpkgs
bfbfe941ab
Lots of packages can use it. Here is the list: - jackmix - klick - mixx - nova-filters - rhvoice - giv - mypaint - swift-im - bombono - mapnik - serf - nuitka - pyexiv2 - godot - hammer - toluapp - btanks - dxx-rebirth - endless-sky - globulation - the-powder-toy - fceux - gpsd - mongodb - rippled - mariadb - lprof
40 lines
946 B
Nix
40 lines
946 B
Nix
{ stdenv, fetchFromGitHub, scons, pkgconfig, SDL, lua, fftwFloat, zlib, bzip2 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "the-powder-toy-${version}";
|
|
version = "92.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "simtr";
|
|
repo = "The-Powder-Toy";
|
|
rev = "v${version}";
|
|
sha256 = "1n15kgl4qnz55b32ddgmhrv64cl3awbds8arycn7mkf7akwdg1g6";
|
|
};
|
|
|
|
patches = [ ./fix-env.patch ];
|
|
|
|
postPatch = ''
|
|
sed -i 's,lua5.1,lua,g' SConscript
|
|
'';
|
|
|
|
nativeBuildInputs = [ scons pkgconfig ];
|
|
|
|
buildInputs = [ SDL lua fftwFloat zlib bzip2 ];
|
|
|
|
sconsFlags = "--tool=";
|
|
|
|
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" ];
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ abbradar ];
|
|
};
|
|
}
|