diff options
author | Griffin Smith <root@gws.fyi> | 2020-05-10T22·40-0400 |
---|---|---|
committer | Griffin Smith <root@gws.fyi> | 2020-05-10T22·40-0400 |
commit | c628a0516c293a125d400eb459c110211b766a76 (patch) | |
tree | 13f69dea692f5fca6b8d5459c325c3740410f18e /home/modules/games/dwarf-fortress.nix | |
parent | bf0be392810b18b0ada2e91d990b18c761844e1b (diff) |
finish up dwarf-fortress stuff
Diffstat (limited to 'home/modules/games/dwarf-fortress.nix')
-rw-r--r-- | home/modules/games/dwarf-fortress.nix | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/home/modules/games/dwarf-fortress.nix b/home/modules/games/dwarf-fortress.nix deleted file mode 100644 index 8db61456605a..000000000000 --- a/home/modules/games/dwarf-fortress.nix +++ /dev/null @@ -1,39 +0,0 @@ -{ pkgs ? import <nixpkgs> {}, ... }: - -with pkgs; - -rec { - df-orig = dwarf-fortress-packages.dwarf-fortress-original; - - df-full = (dwarf-fortress-packages.dwarf-fortress-full.override { - theme = null; - enableIntro = false; - enableFPS = true; - }); - - init = runCommand "init.txt" {} '' - substitute "${df-orig}/data/init/init.txt" $out \ - --replace "[INTRO:YES]" "[INTRO:NO]" \ - --replace "[VOLUME:255]" "[VOLUME:0]" \ - --replace "[FPS:NO]" "[FPS:YES]" - ''; - - d_init = runCommand "d_init.txt" {} '' - substitute "${df-orig}/data/init/d_init.txt" $out \ - --replace "[AUTOSAVE:NONE]" "[AUTOSAVE:SEASONAL]" \ - --replace "[AUTOSAVE_PAUSE:NO]" "[AUTOSAVE_PAUSE:YES]" \ - --replace "[INITIAL_SAVE:NO]" "[INITIAL_SAVE:YES]" \ - --replace "[EMBARK_WARNING_ALWAYS:NO]" "[EMBARK_WARNING_ALWAYS:YES]" \ - --replace "[VARIED_GROUND_TILES:YES]" "[VARIED_GROUND_TILES:NO]" \ - --replace "[SHOW_FLOW_AMOUNTS:NO]" "[SHOW_FLOW_AMOUNTS:YES]" - ''; - - df = runCommand "dwarf-fortress" {} '' - mkdir -p $out/bin - sed \ - -e '2icp -f ${init} "$DF_DIR/data/init/init.txt"' \ - -e '3icp -f ${d_init} "$DF_DIR/data/init/d_init.txt"' \ - < "${df-full}/bin/dwarf-fortress" >"$out/bin/dwarf-fortress" - ''; - -} |