From 55eb7411462bffc81c2c6b5347868057625c10ac Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Mon, 5 Dec 2016 01:59:43 +0200 Subject: [PATCH] xsokoban: Fix build --- pkgs/games/xsokoban/default.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/games/xsokoban/default.nix b/pkgs/games/xsokoban/default.nix index 502771e18ee6..47d05b7e3f6a 100644 --- a/pkgs/games/xsokoban/default.nix +++ b/pkgs/games/xsokoban/default.nix @@ -11,16 +11,19 @@ stdenv.mkDerivation rec { buildInputs = [ libX11 xproto libXpm libXt ]; + NIX_CFLAGS_COMPILE = "-I${libXpm.dev}/include/X11"; + + hardeningDisable = [ "format" ]; + preConfigure = '' sed -e 's/getline/my_getline/' -i score.c - export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${libXpm.dev}/include/X11" - for i in $NIX_CFLAGS_COMPILE; do echo $i; ls ''${i#-I}; done + chmod a+rw config.h cat >>config.h <