summaryrefslogtreecommitdiffstats
path: root/pkgs/games/crawl
diff options
context:
space:
mode:
authorDave Nicponski <dave.nicponski@gmail.com>2019-07-28 03:31:00 -0400
committerDave Nicponski <dave.nicponski@gmail.com>2019-08-04 16:38:14 -0400
commitf6ebeb801da4984c886f3377b2e542d4bbe98664 (patch)
tree23bdd5897a4b92f62f8bd1ea46949b2a3a4d9791 /pkgs/games/crawl
parent8af32fb4cd9551db0112232bc405f47421303e0a (diff)
crawl: use static config for data files.
This allows the game to be executed from anywhere, not just the install directory in the nix store.
Diffstat (limited to 'pkgs/games/crawl')
-rw-r--r--pkgs/games/crawl/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/games/crawl/default.nix b/pkgs/games/crawl/default.nix
index 203afa93b45e..2179c2bff76d 100644
--- a/pkgs/games/crawl/default.nix
+++ b/pkgs/games/crawl/default.nix
@@ -49,8 +49,9 @@ stdenv.mkDerivation rec {
fontsPath = lib.optionalString tileMode dejavu_fonts;
- makeFlags = [ "prefix=$(out)" "FORCE_CC=cc" "FORCE_CXX=c++" "HOSTCXX=c++"
+ makeFlags = [ "prefix=${placeholder "out"}" "FORCE_CC=cc" "FORCE_CXX=c++" "HOSTCXX=c++"
"SAVEDIR=~/.crawl" "sqlite=${sqlite.dev}"
+ "DATADIR=${placeholder "out"}"
] ++ lib.optional tileMode "TILES=y"
++ lib.optional enableSound "SOUND=y";