1 { lib, stdenv, fetchurl }:
5 if stdenv.hostPlatform.system == "x86_64-linux" then "amd64"
6 else if stdenv.hostPlatform.system == "i686-linux" then "x86"
7 else throw "Unsupported architecture";
9 in stdenv.mkDerivation rec {
10 pname = "ut2004-demo";
14 url = "http://ftp.snt.utwente.nl/pub/games/UT2004/demo/UT2004-LNX-Demo${version}.run.gz";
15 sha256 = "0d5f84qz8l1rg16yzx2k4ikr46n9iwj68na1bqi87wrww7ck6jh7";
19 cat $src | gunzip > setup.run
21 ./setup.run --noexec --target .
23 tar -xaf ut2004demo.tar.bz2 -C $out
24 tar -xaf linux-${arch}.tar.bz2 -C $out
26 rm $out/System/libSDL-1.2.so.0
27 rm $out/System/openal.so
34 description = "A first-person shooter video game developed by Epic Games and Digital Extreme -- demo version";
35 homepage = "http://www.unrealtournament2004.com";
36 license = licenses.unfree;
37 maintainers = with maintainers; [ abbradar ];
38 platforms = [ "x86_64-linux" "i686-linux" ];