about summary refs log tree commit diff
path: root/home/modules/games.nix
diff options
context:
space:
mode:
authorGriffin Smith <root@gws.fyi>2020-05-10T22·40-0400
committerGriffin Smith <root@gws.fyi>2020-05-10T22·40-0400
commitc628a0516c293a125d400eb459c110211b766a76 (patch)
tree13f69dea692f5fca6b8d5459c325c3740410f18e /home/modules/games.nix
parentbf0be392810b18b0ada2e91d990b18c761844e1b (diff)
finish up dwarf-fortress stuff
Diffstat (limited to 'home/modules/games.nix')
-rw-r--r--home/modules/games.nix20
1 files changed, 14 insertions, 6 deletions
diff --git a/home/modules/games.nix b/home/modules/games.nix
index 14b2d1b4b325..c68342ba6bb7 100644
--- a/home/modules/games.nix
+++ b/home/modules/games.nix
@@ -30,15 +30,23 @@ let
   '';
 
   df = runCommand "dwarf-fortress" {} ''
-     mkdir -p $out/bin
-     sed \
-       -e '4icp -f ${init} "$DF_DIR/data/init/init.txt"' \
-       -e '4icp -f ${d_init} "$DF_DIR/data/init/d_init.txt"' \
-       < "${df-full}/bin/dwarf-fortress" >"$out/bin/dwarf-fortress"
-     chmod +x $out/bin/dwarf-fortress
+    mkdir -p $out/bin
+    sed \
+      -e '4icp -f ${init} "$DF_DIR/data/init/init.txt"' \
+      -e '4icp -f ${d_init} "$DF_DIR/data/init/d_init.txt"' \
+      < "${df-full}/bin/dwarf-fortress" >"$out/bin/dwarf-fortress"
+
+    shopt -s extglob
+    ln -s ${df-full}/bin/!(dwarf-fortress) $out/bin
+
+    chmod +x $out/bin/dwarf-fortress
   '';
 
 in {
+  imports = [
+    ./obs.nix
+  ];
+
   home.packages = [
     crawl
     df