nixpkgs/pkgs/games/dwarf-fortress/themes/default.nix
2020-02-09 17:46:19 -08:00

19 lines
451 B
Nix

{lib, fetchFromGitHub, ...}:
with builtins;
listToAttrs (map (v: {
inherit (v) name;
value = fetchFromGitHub {
name = "${v.name}-${v.version}";
owner = "DFgraphics";
repo = v.name;
rev = v.version;
sha256 = v.sha256;
meta = with lib; {
platforms = platforms.all;
maintainers = [ maintainers.matthewbauer maintainers.shazow ];
license = licenses.free;
};
};
}) (fromJSON (readFile ./themes.json)))