nixpkgs/pkgs/games/dwarf-fortress/default.nix
Matthew Bauer cdd0ac7e54 dwarf-fortress: support older versions as well
game.json now contains a dictionary of old game hashes. I have added
them for the last 3 releases.

- add script to generate hashes

  Makes it much easier to update game.json file.

- add updateScript meta

  This adds some info on the ./update.sh updateScript now available.

- cleanup updateScript

  - Add some more systems
  - Correctly detect source extensions (.zip or .tar.bz2)
  - Proper bash quoting

- fix update.sh

  - correctly detect latest df version
  - append to game.json instead of overwriting it

- update hashes for 44.12
2018-07-09 16:13:53 -04:00

46 lines
1.1 KiB
Nix

{ pkgs, stdenv, stdenvNoCC, gccStdenv }:
let
callPackage = pkgs.newScope self;
self = rec {
dwarf-fortress-original = callPackage ./game.nix {
dfVersion = "0.44.11";
};
dfhack = callPackage ./dfhack {
inherit (pkgs.perlPackages) XMLLibXML XMLLibXSLT;
stdenv = gccStdenv;
};
soundSense = callPackage ./soundsense.nix { };
# unfuck is linux-only right now, we will just use it there
dwarf-fortress-unfuck = if stdenv.isLinux then callPackage ./unfuck.nix { }
else null;
dwarf-fortress = callPackage ./wrapper {
inherit themes;
};
dwarf-therapist-original = pkgs.qt5.callPackage ./dwarf-therapist {
texlive = pkgs.texlive.combine {
inherit (pkgs.texlive) scheme-basic float caption wrapfig adjmulticol sidecap preprint enumitem;
};
};
dwarf-therapist = callPackage ./dwarf-therapist/wrapper.nix { };
legends-browser = callPackage ./legends-browser {};
themes = callPackage ./themes {
stdenv = stdenvNoCC;
};
phoebus-theme = themes.phoebus;
cla-theme = themes.cla;
};
in self