mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 18:26:45 +01:00
27 lines
744 B
Nix
27 lines
744 B
Nix
{ lib, stdenv, fetchurl, zeroad-unwrapped }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "0ad-data";
|
|
inherit (zeroad-unwrapped) version;
|
|
|
|
src = fetchurl {
|
|
url = "http://releases.wildfiregames.com/0ad-${version}-alpha-unix-data.tar.xz";
|
|
sha256 = "1c9zrddmjxvvacismld6fbwbw9vrdbq6g6d3424p8w5p6xg5wlwy";
|
|
};
|
|
|
|
installPhase = ''
|
|
rm binaries/data/tools/fontbuilder/fonts/*.txt
|
|
mkdir -p $out/share/0ad
|
|
cp -r binaries/data $out/share/0ad/
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A free, open-source game of ancient warfare -- data files";
|
|
homepage = "https://play0ad.com/";
|
|
license = licenses.cc-by-sa-30;
|
|
maintainers = with maintainers; [ chvp ];
|
|
platforms = platforms.linux;
|
|
hydraPlatforms = [];
|
|
};
|
|
}
|