summary refs log tree commit diff
path: root/pkgs/games
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2016-08-22 16:55:56 +0300
committerNikolay Amiantov <ab@fmap.me>2016-08-22 16:55:56 +0300
commitafdce0e3fa5b3faba9bb18f34ef2c28141a68b6f (patch)
treeecdc31fa784df2e4081d9b09463d9cb4b4c917cd /pkgs/games
parent5041e0eea983122725ef867f86bd4c04cef6135e (diff)
downloadnixpkgs-afdce0e3fa5b3faba9bb18f34ef2c28141a68b6f.tar
nixpkgs-afdce0e3fa5b3faba9bb18f34ef2c28141a68b6f.tar.gz
nixpkgs-afdce0e3fa5b3faba9bb18f34ef2c28141a68b6f.tar.bz2
nixpkgs-afdce0e3fa5b3faba9bb18f34ef2c28141a68b6f.tar.lz
nixpkgs-afdce0e3fa5b3faba9bb18f34ef2c28141a68b6f.tar.xz
nixpkgs-afdce0e3fa5b3faba9bb18f34ef2c28141a68b6f.tar.zst
nixpkgs-afdce0e3fa5b3faba9bb18f34ef2c28141a68b6f.zip
the-powder-toy: fix build
Diffstat (limited to 'pkgs/games')
-rw-r--r--pkgs/games/the-powder-toy/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/games/the-powder-toy/default.nix b/pkgs/games/the-powder-toy/default.nix
index 142fbb2b71a..e07117172ce 100644
--- a/pkgs/games/the-powder-toy/default.nix
+++ b/pkgs/games/the-powder-toy/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchFromGitHub, scons, pkgconfig, SDL, lua, fftwFloat }:
+{ stdenv, fetchFromGitHub, scons, pkgconfig, SDL, lua, fftwFloat, zlib, bzip2 }:
 
 stdenv.mkDerivation rec {
   name = "the-powder-toy-${version}";
@@ -13,9 +13,13 @@ stdenv.mkDerivation rec {
 
   patches = [ ./fix-env.patch ];
 
+  postPatch = ''
+    sed -i 's,lua5.1,lua,g' SConscript
+  '';
+
   nativeBuildInputs = [ scons pkgconfig ];
 
-  buildInputs = [ SDL lua fftwFloat ];
+  buildInputs = [ SDL lua fftwFloat zlib bzip2 ];
 
   buildPhase = "scons DESTDIR=$out/bin --tool='' -j$NIX_BUILD_CORES";