git.iko.soy/typeable/nixpkgs
on master help sign in
the-powder-toy: fix build
commitafdce0e3fa5b3faba9bb18f34ef2c28141a68b6f authorNikolay Amiantov <ab@fmap.me> dateMon 22 Aug 2016, 16:55 (10 years ago) parent5041e0e
1 file changed+6−2
pkgs/games/the-powder-toy/default.nix+6−2
pkgs/games/the-powder-toy/default.nix+6−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchFromGitHub, scons, pkgconfig, SDL, lua, fftwFloat }:
1+{ stdenv, fetchFromGitHub, scons, pkgconfig, SDL, lua, fftwFloat, zlib, bzip2 }:
22
33stdenv.mkDerivation rec {
44 name = "the-powder-toy-${version}";
@@ -13,9 +13,13 @@ stdenv.mkDerivation rec {
1313
1414 patches = [ ./fix-env.patch ];
1515
16+ postPatch = ''
17+ sed -i 's,lua5.1,lua,g' SConscript
18+ '';
19+
1620 nativeBuildInputs = [ scons pkgconfig ];
1721
18− buildInputs = [ SDL lua fftwFloat ];
22+ buildInputs = [ SDL lua fftwFloat zlib bzip2 ];
1923
2024 buildPhase = "scons DESTDIR=$out/bin --tool='' -j$NIX_BUILD_CORES";
2125