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:
parent
8af32fb4cd
commit
f6ebeb801d
|
@ -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";
|
||||
|
||||
|
|
Loading…
Reference in a new issue