2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, zeroad-unwrapped }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "0ad-data";
|
|
|
|
inherit (zeroad-unwrapped) version;
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://releases.wildfiregames.com/0ad-${version}-alpha-unix-data.tar.xz";
|
2021-03-23 19:22:30 +00:00
|
|
|
sha256 = "0b53jzl64i49rk3n3c3x0hibwbl7vih2xym8jq5s56klg61qdxa1";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
rm binaries/data/tools/fontbuilder/fonts/*.txt
|
|
|
|
mkdir -p $out/share/0ad
|
|
|
|
cp -r binaries/data $out/share/0ad/
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A free, open-source game of ancient warfare -- data files";
|
|
|
|
homepage = "https://play0ad.com/";
|
|
|
|
license = licenses.cc-by-sa-30;
|
2021-05-20 23:08:51 +00:00
|
|
|
maintainers = with maintainers; [ chvp ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
hydraPlatforms = [];
|
|
|
|
};
|
|
|
|
}
|