mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 22:50:49 +00:00
20 lines
466 B
Nix
20 lines
466 B
Nix
{ stdenv, fetchurl, version, releaseType }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "0ad-data-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "http://releases.wildfiregames.com/0ad-${version}-${releaseType}-unix-data.tar.xz";
|
|
sha256 = "1lzl8chfqbgs1n9vpn0xaqd70kpwiibfk196iblyq6qkms3v6pnv";
|
|
};
|
|
|
|
patchPhase = ''
|
|
rm binaries/data/tools/fontbuilder/fonts/*.txt
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/share/0ad
|
|
cp -r binaries/data/* $out/share/0ad/
|
|
'';
|
|
}
|