2016-11-03 13:43:42 +00:00
|
|
|
{ stdenv, fetchurl }:
|
2014-06-18 21:18:53 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "0ad-data-${version}";
|
2016-11-03 13:43:42 +00:00
|
|
|
version = "0.0.20";
|
2014-06-18 21:18:53 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-11-03 13:43:42 +00:00
|
|
|
url = "http://releases.wildfiregames.com/0ad-${version}-alpha-unix-data.tar.xz";
|
2016-04-30 12:46:45 +00:00
|
|
|
sha256 = "1lzl8chfqbgs1n9vpn0xaqd70kpwiibfk196iblyq6qkms3v6pnv";
|
2014-06-18 21:18:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
2016-11-03 13:43:42 +00:00
|
|
|
rm binaries/data/tools/fontbuilder/fonts/*.txt
|
2014-06-18 21:18:53 +00:00
|
|
|
mkdir -p $out/share/0ad
|
2016-11-03 13:43:42 +00:00
|
|
|
cp -r binaries/data $out/share/0ad/
|
2014-06-18 21:18:53 +00:00
|
|
|
'';
|
2016-11-03 13:43:42 +00: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;
|
|
|
|
};
|
2014-06-18 21:18:53 +00:00
|
|
|
}
|