about summary refs log tree commit diff
path: root/pkgs/games/dwarf-fortress/themes/default.nix
blob: 90f46d052618acea32ec1b1ad5f07c2f03154b42 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{stdenv, lib, fetchFromGitHub}:

with builtins;

listToAttrs (map (v: {
  inherit (v) name;
  value = stdenv.mkDerivation {
    name = "${v.name}-${v.version}";
    src = fetchFromGitHub {
      owner = "DFgraphics";
      repo = v.name;
      rev = v.version;
      sha256 = v.sha256;
    };
    installPhase = ''
      mkdir -p $out
      cp -r data raw $out
    '';
    meta = with lib; {
      platforms = platforms.all;
      maintainers = [ maintainers.matthewbauer ];
      license = licenses.free;
    };
  };
}) (fromJSON (readFile ./themes.json)))