the-powder-toy: fix build

+6 -2
+6 -2
pkgs/games/the-powder-toy/default.nix
··· 1 - { stdenv, fetchFromGitHub, scons, pkgconfig, SDL, lua, fftwFloat }: 2 3 stdenv.mkDerivation rec { 4 name = "the-powder-toy-${version}"; ··· 13 14 patches = [ ./fix-env.patch ]; 15 16 nativeBuildInputs = [ scons pkgconfig ]; 17 18 - buildInputs = [ SDL lua fftwFloat ]; 19 20 buildPhase = "scons DESTDIR=$out/bin --tool='' -j$NIX_BUILD_CORES"; 21
··· 1 + { stdenv, fetchFromGitHub, scons, pkgconfig, SDL, lua, fftwFloat, zlib, bzip2 }: 2 3 stdenv.mkDerivation rec { 4 name = "the-powder-toy-${version}"; ··· 13 14 patches = [ ./fix-env.patch ]; 15 16 + postPatch = '' 17 + sed -i 's,lua5.1,lua,g' SConscript 18 + ''; 19 + 20 nativeBuildInputs = [ scons pkgconfig ]; 21 22 + buildInputs = [ SDL lua fftwFloat zlib bzip2 ]; 23 24 buildPhase = "scons DESTDIR=$out/bin --tool='' -j$NIX_BUILD_CORES"; 25