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";
|
2022-09-30 11:47:45 +00:00
|
|
|
sha256 = "sgDkhVj4goB5EOPGhlZ7ajliSNnUGAROz94JCwV3LX0=";
|
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 = [];
|
|
|
|
};
|
|
|
|
}
|