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: {
inherit (v) name;
value = stdenv.mkDerivation {
value = fetchFromGitHub {
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
'';
owner = "DFgraphics";
repo = v.name;
rev = v.version;
sha256 = v.sha256;
meta = with lib; {
platforms = platforms.all;
maintainers = [ maintainers.matthewbauer ];