From f6ebeb801da4984c886f3377b2e542d4bbe98664 Mon Sep 17 00:00:00 2001 From: Dave Nicponski Date: Sun, 28 Jul 2019 03:31:00 -0400 Subject: [PATCH] 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. --- pkgs/games/crawl/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/games/crawl/default.nix b/pkgs/games/crawl/default.nix index 203afa93b45..2179c2bff76 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";