diff options
author | TrevtheForthDev <hilliblockmrblock@gmail.com> | 2019-05-05 04:09:18 -0400 |
---|---|---|
committer | Lassulus <github@lassul.us> | 2019-05-08 04:07:21 +0900 |
commit | 3fcd66cce87d11556b20870b337e8b2e2a935a8a (patch) | |
tree | 80c309b75960ed32342aeea0ec9735e814f46891 /pkgs/games/dwarf-fortress | |
parent | 5fdb9f3ba0bdaa2dc3e11b3ef8294f23c6677d39 (diff) | |
download | nixpkgs-3fcd66cce87d11556b20870b337e8b2e2a935a8a.tar nixpkgs-3fcd66cce87d11556b20870b337e8b2e2a935a8a.tar.gz nixpkgs-3fcd66cce87d11556b20870b337e8b2e2a935a8a.tar.bz2 nixpkgs-3fcd66cce87d11556b20870b337e8b2e2a935a8a.tar.lz nixpkgs-3fcd66cce87d11556b20870b337e8b2e2a935a8a.tar.xz nixpkgs-3fcd66cce87d11556b20870b337e8b2e2a935a8a.tar.zst nixpkgs-3fcd66cce87d11556b20870b337e8b2e2a935a8a.zip |
Added EnableTextMode Dwarf Fortress for playing CLI
Diffstat (limited to 'pkgs/games/dwarf-fortress')
-rw-r--r-- | pkgs/games/dwarf-fortress/lazy-pack.nix | 3 | ||||
-rw-r--r-- | pkgs/games/dwarf-fortress/wrapper/default.nix | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/games/dwarf-fortress/lazy-pack.nix b/pkgs/games/dwarf-fortress/lazy-pack.nix index 3a81dcc9c93..828ff77dfad 100644 --- a/pkgs/games/dwarf-fortress/lazy-pack.nix +++ b/pkgs/games/dwarf-fortress/lazy-pack.nix @@ -15,6 +15,7 @@ , enableIntro ? true , enableTruetype ? true , enableFPS ? false +, enableTextMode ? false }: with lib; @@ -31,7 +32,7 @@ buildEnv { paths = [ (dwarf-fortress.override { inherit enableDFHack enableTWBT enableSoundSense enableStoneSense theme - enableIntro enableTruetype enableFPS; + enableIntro enableTruetype enableFPS enableTextMode; })] ++ lib.optional enableDwarfTherapist dwarf-therapist ++ lib.optional enableLegendsBrowser legends-browser; diff --git a/pkgs/games/dwarf-fortress/wrapper/default.nix b/pkgs/games/dwarf-fortress/wrapper/default.nix index 8672de3af84..713f38f8a61 100644 --- a/pkgs/games/dwarf-fortress/wrapper/default.nix +++ b/pkgs/games/dwarf-fortress/wrapper/default.nix @@ -11,6 +11,7 @@ , enableIntro ? true , enableTruetype ? true , enableFPS ? false +, enableTextMode ? false }: let @@ -58,6 +59,10 @@ let '' + lib.optionalString enableTWBT '' substituteInPlace $out/data/init/init.txt \ --replace '[PRINT_MODE:2D]' '[PRINT_MODE:TWBT]' + '' + + lib.optionalString enableTextMode '' + substituteInPlace $out/data/init/init.txt \ + --replace '[PRINT_MODE:2D]' '[PRINT_MODE:TEXT]' '' + '' substituteInPlace $out/data/init/init.txt \ --replace '[INTRO:YES]' '[INTRO:${unBool enableIntro}]' \ |