summary refs log tree commit diff
path: root/pkgs/games
diff options
context:
space:
mode:
authorLinus Heckemann <git@sphalerite.org>2018-09-20 18:47:13 +0100
committerLinus Heckemann <git@sphalerite.org>2018-09-20 18:47:13 +0100
commitc9728a4dcfdcb48be27709cfd64b702525b5bab1 (patch)
tree2552bce04ffa6e576c79bf1cbc3336d8b8846c31 /pkgs/games
parent86b1f5c71098cf37fbdefafc5cb174e6cae899ea (diff)
downloadnixlib-c9728a4dcfdcb48be27709cfd64b702525b5bab1.tar
nixlib-c9728a4dcfdcb48be27709cfd64b702525b5bab1.tar.gz
nixlib-c9728a4dcfdcb48be27709cfd64b702525b5bab1.tar.bz2
nixlib-c9728a4dcfdcb48be27709cfd64b702525b5bab1.tar.lz
nixlib-c9728a4dcfdcb48be27709cfd64b702525b5bab1.tar.xz
nixlib-c9728a4dcfdcb48be27709cfd64b702525b5bab1.tar.zst
nixlib-c9728a4dcfdcb48be27709cfd64b702525b5bab1.zip
nethack: document cross-compilation fix
Diffstat (limited to 'pkgs/games')
-rw-r--r--pkgs/games/nethack/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/games/nethack/default.nix b/pkgs/games/nethack/default.nix
index 56342728b40f..6f60f8d0c1cb 100644
--- a/pkgs/games/nethack/default.nix
+++ b/pkgs/games/nethack/default.nix
@@ -73,7 +73,11 @@ in stdenv.mkDerivation rec {
         -DCOMPRESS_EXTENSION=\\".gz\\",' \
       -i sys/unix/hints/linux-qt4
     ''}
-    ${lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
+    ${lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform)
+    # If we're cross-compiling, replace the paths to the data generation tools
+    # with the ones from the build platform's nethack package, since we can't
+    # run the ones we've built here.
+    ''
     ${buildPackages.perl}/bin/perl -p \
       -e 's,[a-z./]+/(makedefs|dgn_comp|lev_comp|dlb)(?!\.),${buildPackages.nethack}/libexec/nethack/\1,g' \
       -i sys/unix/Makefile.*