From afdce0e3fa5b3faba9bb18f34ef2c28141a68b6f Mon Sep 17 00:00:00 2001 From: Nikolay Amiantov Date: Mon, 22 Aug 2016 16:55:56 +0300 Subject: [PATCH] the-powder-toy: fix build --- pkgs/games/the-powder-toy/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/games/the-powder-toy/default.nix b/pkgs/games/the-powder-toy/default.nix index 142fbb2b71ad..e07117172ce6 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";