Merge pull request #87915 from matthew-piziak/dwarf-fortress-enable-sound

add `enableSound` parameter to `dwarf-fortress` derivation
This commit is contained in:
adisbladis 2020-05-23 02:34:10 +02:00 committed by GitHub
commit d8435f6d5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -16,6 +16,7 @@
, enableTruetype ? true
, enableFPS ? false
, enableTextMode ? false
, enableSound ? true
}:
with lib;
@ -32,7 +33,7 @@ buildEnv {
paths = [
(dwarf-fortress.override {
inherit enableDFHack enableTWBT enableSoundSense enableStoneSense theme
enableIntro enableTruetype enableFPS enableTextMode;
enableIntro enableTruetype enableFPS enableTextMode enableSound;
})]
++ lib.optional enableDwarfTherapist dwarf-therapist
++ lib.optional enableLegendsBrowser legends-browser;

View File

@ -12,6 +12,7 @@
, enableTruetype ? true
, enableFPS ? false
, enableTextMode ? false
, enableSound ? true
}:
let
@ -67,7 +68,8 @@ let
substituteInPlace $out/data/init/init.txt \
--replace '[INTRO:YES]' '[INTRO:${unBool enableIntro}]' \
--replace '[TRUETYPE:YES]' '[TRUETYPE:${unBool enableTruetype}]' \
--replace '[FPS:NO]' '[FPS:${unBool enableFPS}]'
--replace '[FPS:NO]' '[FPS:${unBool enableFPS}]' \
--replace '[SOUND:YES]' '[SOUND:${unBool enableSound}]'
''));
env = buildEnv {