dwarf-fortress: use fetchFromGitHub directly

This avoids creating a second derivation to copy things from the
original. The new themes are now fixed output.
This commit is contained in:
Matthew Bauer 2018-07-05 00:12:38 -04:00
parent 14555eab0f
commit aba6a3d7f4

View file

@ -4,18 +4,12 @@ with builtins;
listToAttrs (map (v: { listToAttrs (map (v: {
inherit (v) name; inherit (v) name;
value = stdenv.mkDerivation { value = fetchFromGitHub {
name = "${v.name}-${v.version}"; name = "${v.name}-${v.version}";
src = fetchFromGitHub { owner = "DFgraphics";
owner = "DFgraphics"; repo = v.name;
repo = v.name; rev = v.version;
rev = v.version; sha256 = v.sha256;
sha256 = v.sha256;
};
installPhase = ''
mkdir -p $out
cp -r data raw $out
'';
meta = with lib; { meta = with lib; {
platforms = platforms.all; platforms = platforms.all;
maintainers = [ maintainers.matthewbauer ]; maintainers = [ maintainers.matthewbauer ];