1{
2 lib,
3 stdenv,
4 fetchurl,
5 zeroad-unwrapped,
6}:
7
8stdenv.mkDerivation rec {
9 pname = "0ad-data";
10 inherit (zeroad-unwrapped) version;
11
12 src = fetchurl {
13 url = "http://releases.wildfiregames.com/0ad-${version}-unix-data.tar.xz";
14 hash = "sha256-PkiFWrjh74EnAzhGLIJwsBUhPxT14FSquSrXTV6lneo=";
15 };
16
17 installPhase = ''
18 rm binaries/data/tools/fontbuilder/fonts/*.txt
19 mkdir -p $out/share/0ad
20 cp -r binaries/data $out/share/0ad/
21 '';
22
23 meta = with lib; {
24 description = "Free, open-source game of ancient warfare -- data files";
25 homepage = "https://play0ad.com/";
26 license = licenses.cc-by-sa-30;
27 maintainers = with maintainers; [ chvp ];
28 platforms = platforms.linux;
29 hydraPlatforms = [ ];
30 };
31}