phoebus-theme: update for 0.42.05, make a derivation
Also specify license, see https://github.com/fricy/Phoebus/issues/5
This commit is contained in:
parent
6c9dd96377
commit
7fe01a7279
@ -22,6 +22,8 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
dwarf-therapist = callPackage ./dwarf-therapist/wrapper.nix { };
|
dwarf-therapist = callPackage ./dwarf-therapist/wrapper.nix { };
|
||||||
|
|
||||||
|
phoebus-theme = callPackage ./themes/phoebus.nix { };
|
||||||
};
|
};
|
||||||
|
|
||||||
in self
|
in self
|
||||||
|
@ -1,36 +1,33 @@
|
|||||||
{ dfBaseVersion
|
{ stdenv, fetchFromGitHub }:
|
||||||
, dfPatchVersion
|
|
||||||
, fetchzip
|
|
||||||
, ...
|
|
||||||
}:
|
|
||||||
|
|
||||||
let
|
# On upgrade check https://github.com/fricy/Phoebus/blob/master/manifest.json
|
||||||
|
# for compatibility information.
|
||||||
|
|
||||||
phoebusVersion = "00";
|
stdenv.mkDerivation {
|
||||||
phoebusFileName = "Phoebus_${dfBaseVersion}_${dfPatchVersion}v${phoebusVersion}";
|
name = "phoebus-theme-20160118";
|
||||||
|
|
||||||
in rec {
|
src = fetchFromGitHub {
|
||||||
|
owner = "fricy";
|
||||||
src = fetchzip {
|
repo = "Phoebus";
|
||||||
name = phoebusFileName;
|
rev = "2c5777b0f307b1d752a8a484c6a05b67531c84a9";
|
||||||
url = "http://dffd.bay12games.com/download.php?id=2430&f=${phoebusFileName}.zip";
|
sha256 = "0a5ixm181wz7crr3rpa2mh0drb371j5hvizqninvdnhah2mypz8v";
|
||||||
sha256 = "0fb68r6fd7v67mbh2439ygqrmdk4pw94gd293fqxb9qg71ilrb6s";
|
|
||||||
stripRoot = false;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
sourceRoot = src.name;
|
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
pushd ../../$themeSourceRoot
|
mkdir $out
|
||||||
|
cp -r data raw $out
|
||||||
cp data/init/phoebus/* $out/share/df_linux/data/init/
|
|
||||||
cp -rT raw $out/share/df_linux/raw
|
|
||||||
mkdir -p $out/share/df_linux/data/config
|
|
||||||
cp data/config/* $out/share/df_linux/data/config/
|
|
||||||
cp data/art/* $out/share/df_linux/data/art/
|
|
||||||
|
|
||||||
popd
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
}
|
passthru.dfVersion = "0.42.05";
|
||||||
|
|
||||||
|
preferLocalBuild = true;
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Phoebus graphics set for Dwarf Fortress";
|
||||||
|
homepage = "http://www.bay12forums.com/smf/index.php?topic=137096.0";
|
||||||
|
platforms = platforms.all;
|
||||||
|
maintainers = with maintainers; [ a1russell abbradar ];
|
||||||
|
# https://github.com/fricy/Phoebus/issues/5
|
||||||
|
license = licenses.free;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user