@@ -1,36 +1,33 @@
1−{ dfBaseVersion
2−, dfPatchVersion
3−, fetchzip
4−, ...
5−}:
1+{ stdenv, fetchFromGitHub }:
62
7−let
3+# On upgrade check https://github.com/fricy/Phoebus/blob/master/manifest.json
4+# for compatibility information.
85
9− phoebusVersion = "00";
10− phoebusFileName = "Phoebus_${dfBaseVersion}_${dfPatchVersion}v${phoebusVersion}";
6+stdenv.mkDerivation {
7+ name = "phoebus-theme-20160118";
118
12−in rec {
13−
14− src = fetchzip {
15− name = phoebusFileName;
16− url = "http://dffd.bay12games.com/download.php?id=2430&f=${phoebusFileName}.zip";
17− sha256 = "0fb68r6fd7v67mbh2439ygqrmdk4pw94gd293fqxb9qg71ilrb6s";
18− stripRoot = false;
9+ src = fetchFromGitHub {
10+ owner = "fricy";
11+ repo = "Phoebus";
12+ rev = "2c5777b0f307b1d752a8a484c6a05b67531c84a9";
13+ sha256 = "0a5ixm181wz7crr3rpa2mh0drb371j5hvizqninvdnhah2mypz8v";
1914 };
2015
21− sourceRoot = src.name;
22−
2316 installPhase = ''
24− pushd ../../$themeSourceRoot
17+ mkdir $out
18+ cp -r data raw $out
19+ '';
2520
26− cp data/init/phoebus/* $out/share/df_linux/data/init/
27− cp -rT raw $out/share/df_linux/raw
28− mkdir -p $out/share/df_linux/data/config
29− cp data/config/* $out/share/df_linux/data/config/
30− cp data/art/* $out/share/df_linux/data/art/
21+ passthru.dfVersion = "0.42.05";
3122
32− popd
33− '';
23+ preferLocalBuild = true;
3424
25+ meta = with stdenv.lib; {
26+ description = "Phoebus graphics set for Dwarf Fortress";
27+ homepage = "http://www.bay12forums.com/smf/index.php?topic=137096.0";
28+ platforms = platforms.all;
29+ maintainers = with maintainers; [ a1russell abbradar ];
30+ # https://github.com/fricy/Phoebus/issues/5
31+ license = licenses.free;
32+ };
3533}
36−