about summary refs log tree commit diff
path: root/pkgs/games/dwarf-fortress/themes/phoebus.nix
blob: a26abf207d4fd126f26b85a9c2c427e3ca2f8a7d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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
  '';

}