2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, zeroad-unwrapped }:
|
2014-06-18 22:18:53 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "0ad-data";
|
2018-05-20 20:32:03 +01:00
|
|
|
inherit (zeroad-unwrapped) version;
|
2014-06-18 22:18:53 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-11-03 13:43:42 +00:00
|
|
|
url = "http://releases.wildfiregames.com/0ad-${version}-alpha-unix-data.tar.xz";
|
2021-02-22 20:06:43 +00:00
|
|
|
sha256 = "0b53jzl64i49rk3n3c3x0hibwbl7vih2xym8jq5s56klg61qdxa1";
|
2014-06-18 22:18:53 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
2016-11-03 13:43:42 +00:00
|
|
|
rm binaries/data/tools/fontbuilder/fonts/*.txt
|
2014-06-18 22:18:53 +01:00
|
|
|
mkdir -p $out/share/0ad
|
2016-11-03 13:43:42 +00:00
|
|
|
cp -r binaries/data $out/share/0ad/
|
2014-06-18 22:18:53 +01:00
|
|
|
'';
|
2016-11-03 13:43:42 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-11-03 13:43:42 +00:00
|
|
|
description = "A free, open-source game of ancient warfare -- data files";
|
2017-10-22 23:19:28 +01:00
|
|
|
homepage = "https://play0ad.com/";
|
2016-11-03 13:43:42 +00:00
|
|
|
license = licenses.cc-by-sa-30;
|
2021-04-16 17:42:32 +01:00
|
|
|
maintainers = with maintainers; [ chvp ];
|
2016-11-03 13:43:42 +00:00
|
|
|
platforms = platforms.linux;
|
2016-11-05 11:15:44 +00:00
|
|
|
hydraPlatforms = [];
|
2016-11-03 13:43:42 +00:00
|
|
|
};
|
2014-06-18 22:18:53 +01:00
|
|
|
}
|