diff options
author | Dave Nicponski <dave.nicponski@gmail.com> | 2019-07-28 03:31:00 -0400 |
---|---|---|
committer | Dave Nicponski <dave.nicponski@gmail.com> | 2019-08-04 16:38:14 -0400 |
commit | f6ebeb801da4984c886f3377b2e542d4bbe98664 (patch) | |
tree | 23bdd5897a4b92f62f8bd1ea46949b2a3a4d9791 | |
parent | 8af32fb4cd9551db0112232bc405f47421303e0a (diff) | |
download | nixlib-f6ebeb801da4984c886f3377b2e542d4bbe98664.tar nixlib-f6ebeb801da4984c886f3377b2e542d4bbe98664.tar.gz nixlib-f6ebeb801da4984c886f3377b2e542d4bbe98664.tar.bz2 nixlib-f6ebeb801da4984c886f3377b2e542d4bbe98664.tar.lz nixlib-f6ebeb801da4984c886f3377b2e542d4bbe98664.tar.xz nixlib-f6ebeb801da4984c886f3377b2e542d4bbe98664.tar.zst nixlib-f6ebeb801da4984c886f3377b2e542d4bbe98664.zip |
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.
-rw-r--r-- | pkgs/games/crawl/default.nix | 3 |
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"; |