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.
This commit is contained in:
Dave Nicponski 2019-07-28 03:31:00 -04:00
parent 8af32fb4cd
commit f6ebeb801d

View File

@ -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";