1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 22:50:49 +00:00

dwarf-fortress: fix most of customization options

see #49779
close #49803
This commit is contained in:
lassulus 2018-11-05 21:48:42 +01:00 committed by Herwig Hochleitner
parent d9f8cf734e
commit 290dd06d14

View file

@ -33,7 +33,7 @@ let
++ lib.optional enableTWBT twbt.art
++ [ dwarf-fortress ];
fixup = lib.singleton (runCommand "fixup" {} ''
fixup = lib.singleton (runCommand "fixup" {} (''
mkdir -p $out/data/init
cp ${dwarf-fortress}/data/init/init.txt $out/data/init/init.txt
'' + lib.optionalString enableDFHack ''
@ -60,7 +60,7 @@ let
--replace '[INTRO:YES]' '[INTRO:${unBool enableIntro}]' \
--replace '[TRUETYPE:YES]' '[TRUETYPE:${unBool enableTruetype}]' \
--replace '[FPS:NO]' '[FPS:${unBool enableFPS}]'
'');
''));
env = buildEnv {
name = "dwarf-fortress-env-${dwarf-fortress.dfVersion}";