diff options
author | Nikolay Amiantov <ab@fmap.me> | 2016-01-20 00:43:52 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2016-01-26 03:05:50 +0300 |
commit | 7fe01a7279a8a9630ac42b2c7c9dd291c4a7a9a9 (patch) | |
tree | ef4308d631993d2d2e6c73651bb72985c63431c4 /pkgs/games | |
parent | 6c9dd963776d108ef05700fe843f1a285e3d7182 (diff) | |
download | nixlib-7fe01a7279a8a9630ac42b2c7c9dd291c4a7a9a9.tar nixlib-7fe01a7279a8a9630ac42b2c7c9dd291c4a7a9a9.tar.gz nixlib-7fe01a7279a8a9630ac42b2c7c9dd291c4a7a9a9.tar.bz2 nixlib-7fe01a7279a8a9630ac42b2c7c9dd291c4a7a9a9.tar.lz nixlib-7fe01a7279a8a9630ac42b2c7c9dd291c4a7a9a9.tar.xz nixlib-7fe01a7279a8a9630ac42b2c7c9dd291c4a7a9a9.tar.zst nixlib-7fe01a7279a8a9630ac42b2c7c9dd291c4a7a9a9.zip |
phoebus-theme: update for 0.42.05, make a derivation
Also specify license, see https://github.com/fricy/Phoebus/issues/5
Diffstat (limited to 'pkgs/games')
-rw-r--r-- | pkgs/games/dwarf-fortress/default.nix | 2 | ||||
-rw-r--r-- | pkgs/games/dwarf-fortress/themes/phoebus.nix | 49 |
2 files changed, 25 insertions, 26 deletions
diff --git a/pkgs/games/dwarf-fortress/default.nix b/pkgs/games/dwarf-fortress/default.nix index 84b5f2b0f4b6..317b532ecbe6 100644 --- a/pkgs/games/dwarf-fortress/default.nix +++ b/pkgs/games/dwarf-fortress/default.nix @@ -22,6 +22,8 @@ let }; dwarf-therapist = callPackage ./dwarf-therapist/wrapper.nix { }; + + phoebus-theme = callPackage ./themes/phoebus.nix { }; }; in self diff --git a/pkgs/games/dwarf-fortress/themes/phoebus.nix b/pkgs/games/dwarf-fortress/themes/phoebus.nix index a26abf207d4f..2183a6245c0c 100644 --- a/pkgs/games/dwarf-fortress/themes/phoebus.nix +++ b/pkgs/games/dwarf-fortress/themes/phoebus.nix @@ -1,36 +1,33 @@ -{ dfBaseVersion -, dfPatchVersion -, fetchzip -, ... -}: +{ stdenv, fetchFromGitHub }: -let +# On upgrade check https://github.com/fricy/Phoebus/blob/master/manifest.json +# for compatibility information. - phoebusVersion = "00"; - phoebusFileName = "Phoebus_${dfBaseVersion}_${dfPatchVersion}v${phoebusVersion}"; +stdenv.mkDerivation { + name = "phoebus-theme-20160118"; -in rec { - - src = fetchzip { - name = phoebusFileName; - url = "http://dffd.bay12games.com/download.php?id=2430&f=${phoebusFileName}.zip"; - sha256 = "0fb68r6fd7v67mbh2439ygqrmdk4pw94gd293fqxb9qg71ilrb6s"; - stripRoot = false; + src = fetchFromGitHub { + owner = "fricy"; + repo = "Phoebus"; + rev = "2c5777b0f307b1d752a8a484c6a05b67531c84a9"; + sha256 = "0a5ixm181wz7crr3rpa2mh0drb371j5hvizqninvdnhah2mypz8v"; }; - sourceRoot = src.name; - 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/ + passthru.dfVersion = "0.42.05"; - popd - ''; + 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; + }; } - |