nixpkgs/pkgs/games/0ad/data.nix

26 lines
698 B
Nix
Raw Normal View History

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