nixpkgs/pkgs/games/dwarf-fortress/themes/default.nix
Matthew Bauer aba6a3d7f4 dwarf-fortress: use fetchFromGitHub directly
This avoids creating a second derivation to copy things from the
original. The new themes are now fixed output.
2018-07-05 17:25:07 -04:00

20 lines
435 B
Nix

{stdenv, lib, fetchFromGitHub}:
with builtins;
listToAttrs (map (v: {
inherit (v) name;
value = fetchFromGitHub {
name = "${v.name}-${v.version}";
owner = "DFgraphics";
repo = v.name;
rev = v.version;
sha256 = v.sha256;
meta = with lib; {
platforms = platforms.all;
maintainers = [ maintainers.matthewbauer ];
license = licenses.free;
};
};
}) (fromJSON (readFile ./themes.json)))