2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2016-01-04 12:27:19 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
version = "1.11-6";
|
|
|
|
in stdenv.mkDerivation {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "quake3-demodata";
|
|
|
|
inherit version;
|
2016-01-04 12:27:19 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 18:43:35 +00:00
|
|
|
url = "https://ftp.gwdg.de/pub/misc/ftp.idsoftware.com/idstuff/quake3/linux/linuxq3ademo-${version}.x86.gz.sh";
|
2016-01-04 12:27:19 +00:00
|
|
|
sha256 = "1v54a1hx1bczk9hgn9qhx8vixsy7xn7wj2pylhfjsybfkgvf7pk4";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildCommand = ''
|
|
|
|
tail -n +165 $src | tar xfz -
|
|
|
|
|
|
|
|
mkdir -p $out/baseq3
|
|
|
|
cp demoq3/*.pk3 $out/baseq3
|
|
|
|
'';
|
|
|
|
|
|
|
|
preferLocalBuild = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-01-04 12:27:19 +00:00
|
|
|
description = "Quake 3 Arena demo content";
|
|
|
|
license = licenses.unfreeRedistributable;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|