nixpkgs/pkgs/games/dwarf-fortress/themes/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
491 B
Nix
Raw Normal View History

2021-06-29 02:42:37 +00:00
{ lib, fetchFromGitHub, ... }:
with builtins;
2021-06-29 02:42:37 +00:00
listToAttrs (map
(v: {
inherit (v) name;
value = fetchFromGitHub {
name = "${v.name}-theme-${v.version}";
2021-06-29 02:42:37 +00:00
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;
};
};
2021-06-29 02:42:37 +00:00
})
(fromJSON (readFile ./themes.json)))