1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00
nixpkgs/pkgs/games/dwarf-fortress/themes/default.nix
Matthew Bauer 91184d159d dwarf-fortress: move themes to .json file
This will make it easier to automate.
2018-06-06 19:19:29 -04:00

26 lines
558 B
Nix

{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)))