depot/third_party/nixpkgs/pkgs/games/dwarf-fortress/themes/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

30 lines
575 B
Nix

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