diff options
author | Tuomas Tynkkynen <tuomas@tuxera.com> | 2016-12-05 01:59:43 +0200 |
---|---|---|
committer | Tuomas Tynkkynen <tuomas@tuxera.com> | 2016-12-05 02:01:54 +0200 |
commit | 55eb7411462bffc81c2c6b5347868057625c10ac (patch) | |
tree | d27e6519555043e6f11f602331b907c235e29d19 /pkgs/games/xsokoban | |
parent | 8cdc40dae071f8dbac1f866063f8bb1d043ddbad (diff) |
xsokoban: Fix build
Diffstat (limited to 'pkgs/games/xsokoban')
-rw-r--r-- | pkgs/games/xsokoban/default.nix | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/pkgs/games/xsokoban/default.nix b/pkgs/games/xsokoban/default.nix index 502771e18ee60..47d05b7e3f6ad 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 <<EOF #define HERE "@nixos-packaged" #define WWW 0 #define OWNER "'$(whoami)'" - #define ROOTDIR "'$out/lib/xsokoban'" + #define ROOTDIR "$out/lib/xsokoban" #define ANYLEVEL 1 #define SCOREFILE ".xsokoban-score" #define LOCKFILE ".xsokoban-score-lock" @@ -42,5 +45,6 @@ stdenv.mkDerivation rec { description = "X sokoban"; license = licenses.publicDomain; maintainers = [ maintainers.raskin ]; + platforms = platforms.linux; }; } |