mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 15:44:20 +00:00
31 lines
573 B
Nix
31 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))
|