mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
dwarf-fortress: add phoebus
This commit is contained in:
parent
fdae86fb4e
commit
6c9dd96377
36
pkgs/games/dwarf-fortress/themes/phoebus.nix
Normal file
36
pkgs/games/dwarf-fortress/themes/phoebus.nix
Normal file
@ -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
|
||||
'';
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user