diff --git a/pkgs/games/dwarf-fortress/themes/phoebus.nix b/pkgs/games/dwarf-fortress/themes/phoebus.nix new file mode 100644 index 00000000000..a26abf207d4 --- /dev/null +++ b/pkgs/games/dwarf-fortress/themes/phoebus.nix @@ -0,0 +1,36 @@ +{ dfBaseVersion +, dfPatchVersion +, fetchzip +, ... +}: + +let + + phoebusVersion = "00"; + phoebusFileName = "Phoebus_${dfBaseVersion}_${dfPatchVersion}v${phoebusVersion}"; + +in rec { + + src = fetchzip { + name = phoebusFileName; + url = "http://dffd.bay12games.com/download.php?id=2430&f=${phoebusFileName}.zip"; + sha256 = "0fb68r6fd7v67mbh2439ygqrmdk4pw94gd293fqxb9qg71ilrb6s"; + stripRoot = false; + }; + + sourceRoot = src.name; + + installPhase = '' + pushd ../../$themeSourceRoot + + 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 + ''; + +} +