depot/third_party/nixpkgs/pkgs/games/dwarf-fortress/themes/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

30 lines
573 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.free;
};
};
})
(importJSON ./themes.json))