diff options
Diffstat (limited to 'pkgs/games/quake3/content/demo.nix')
-rw-r--r-- | pkgs/games/quake3/content/demo.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/games/quake3/content/demo.nix b/pkgs/games/quake3/content/demo.nix new file mode 100644 index 00000000000..2b4e69f0086 --- /dev/null +++ b/pkgs/games/quake3/content/demo.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchurl }: + +let + version = "1.11-6"; +in stdenv.mkDerivation { + name = "quake3-demodata-${version}"; + + src = fetchurl { + url = "http://ftp.gwdg.de/pub/misc/ftp.idsoftware.com/idstuff/quake3/linux/linuxq3ademo-${version}.x86.gz.sh"; + sha256 = "1v54a1hx1bczk9hgn9qhx8vixsy7xn7wj2pylhfjsybfkgvf7pk4"; + }; + + buildCommand = '' + tail -n +165 $src | tar xfz - + + mkdir -p $out/baseq3 + cp demoq3/*.pk3 $out/baseq3 + ''; + + preferLocalBuild = true; + + meta = with stdenv.lib; { + description = "Quake 3 Arena demo content"; + license = licenses.unfreeRedistributable; + platforms = platforms.all; + maintainers = with maintainers; [ abbradar ]; + }; +} |