2016-11-03 14:43:42 +01:00
|
|
|
{ stdenv, fetchurl }:
|
2014-06-18 23:18:53 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "0ad-data-${version}";
|
2016-11-10 23:32:22 +01:00
|
|
|
version = "0.0.21";
|
2014-06-18 23:18:53 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-11-03 14:43:42 +01:00
|
|
|
url = "http://releases.wildfiregames.com/0ad-${version}-alpha-unix-data.tar.xz";
|
2016-11-10 23:32:22 +01:00
|
|
|
sha256 = "15xadyrpvq27lm9p1ny7bcmmv56m16h3xadbkdx69gfkzxc3razk";
|
2014-06-18 23:18:53 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
2016-11-03 14:43:42 +01:00
|
|
|
rm binaries/data/tools/fontbuilder/fonts/*.txt
|
2014-06-18 23:18:53 +02:00
|
|
|
mkdir -p $out/share/0ad
|
2016-11-03 14:43:42 +01:00
|
|
|
cp -r binaries/data $out/share/0ad/
|
2014-06-18 23:18:53 +02:00
|
|
|
'';
|
2016-11-03 14:43:42 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A free, open-source game of ancient warfare -- data files";
|
|
|
|
homepage = "http://wildfiregames.com/0ad/";
|
|
|
|
license = licenses.cc-by-sa-30;
|
|
|
|
platforms = platforms.linux;
|
2016-11-05 12:15:44 +01:00
|
|
|
hydraPlatforms = [];
|
2016-11-03 14:43:42 +01:00
|
|
|
};
|
2014-06-18 23:18:53 +02:00
|
|
|
}
|