about summary refs log tree commit diff
path: root/pkgs/games/dwarf-fortress/default.nix
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2018-07-09 16:23:43 -0400
committerMatthew Bauer <mjbauer95@gmail.com>2018-07-09 16:24:21 -0400
commit3108f1eeafdee6c0ddd81e85d22ca4881dfe7836 (patch)
tree37652fbc9a05071aae090ffa0db24eacf95114be /pkgs/games/dwarf-fortress/default.nix
parent812b0ec62e0054e647fbb6b6f716bd4c4515bacb (diff)
parentb0c7245ee5ea9a93b9bdd2896c90fe822edb0596 (diff)
Merge remote-tracking branch 'Baughn/nix-df' into dwarf-fortress
Diffstat (limited to 'pkgs/games/dwarf-fortress/default.nix')
-rw-r--r--pkgs/games/dwarf-fortress/default.nix27
1 files changed, 25 insertions, 2 deletions
diff --git a/pkgs/games/dwarf-fortress/default.nix b/pkgs/games/dwarf-fortress/default.nix
index 218cf4309861b..d9a5df73f17cc 100644
--- a/pkgs/games/dwarf-fortress/default.nix
+++ b/pkgs/games/dwarf-fortress/default.nix
@@ -1,4 +1,24 @@
-{ pkgs, stdenv, stdenvNoCC, gccStdenv, lib, recurseIntoAttrs }:
+{ pkgs, stdenv, stdenvNoCC, buildEnv, gccStdenv, lib, recurseIntoAttrs }:
+
+# To whomever it may concern:
+#
+# This directory menaces with spikes of Nix code. It is terrifying.
+#
+# If this is your first time here, you should probably install the dwarf-fortress-full package,
+# for instance with `environment.systempackages = [ pkgs.dwarf-fortress.dwarf-fortress-full ];`.
+#
+# You can adjust its settings by using override, or compile your own package by
+# using the other packages here. Take a look at lazy-pack.nix to get an idea of
+# how.
+#
+# You will find the configuration files in ~/.local/share/df_linux/data/init. If
+# you un-symlink them and edit, then the scripts will avoid overwriting your
+# changes on later launches, but consider extending the wrapper with your
+# desired options instead.
+#
+# Although both dfhack and dwarf therapist are included in the lazy pack, you
+# can only use one at a time. DFHack does have therapist-like features, so this
+# may or may not be a problem.
 
 let
   callPackage = pkgs.newScope self;
@@ -15,6 +35,8 @@ let
     df-hashes = builtins.fromJSON (builtins.readFile ./game.json);
     dwarf-fortress = df-games.dwarf-fortress_0_44_11;
 
+    dwarf-fortress-full = callPackage ./lazy-pack.nix { };
+
     dfhack = callPackage ./dfhack {
       inherit (pkgs.perlPackages) XMLLibXML XMLLibXSLT;
       stdenv = gccStdenv;
@@ -22,7 +44,7 @@ let
 
     soundSense = callPackage ./soundsense.nix { };
 
-    # unfuck is linux-only right now, we will just use it there
+    # unfuck is linux-only right now, we will only use it there.
     dwarf-fortress-unfuck = if stdenv.isLinux then callPackage ./unfuck.nix { }
                             else null;
 
@@ -37,6 +59,7 @@ let
 
     legends-browser = callPackage ./legends-browser {};
 
+    twbt = callPackage ./twbt {};
     themes = recurseIntoAttrs (callPackage ./themes {
       stdenv = stdenvNoCC;
     });