1 { stdenv, lib, runCommand, buildEnv, makeWrapper, makeDesktopItem, gamePacks, libstdcxx5, SDL, openal }:
7 ignoreCollisions = true;
8 pathsToLink = [ "/" "/System" ];
10 ln -s ${lib.getLib SDL}/lib/libSDL-1.2.so.0 $out/System
11 ln -s ${lib.getLib openal}/lib/libopenal.so $out/System/openal.so
12 for i in $out/System/*-bin; do
13 path="$(readlink -f "$i")"
18 --set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) \
19 --set-rpath "$out/System:${lib.makeLibraryPath [ libstdcxx5 ]}" \
25 desktop = makeDesktopItem {
27 desktopName = "Unreal Tournament 2004";
28 comment = "A first-person shooter video game developed by Epic Games and Digital Extreme";
29 genericName = "First-person shooter";
30 categories = [ "Game" ];
34 in runCommand "ut2004" {
35 nativeBuildInputs = [ makeWrapper ];
38 for i in ${game}/System/*-bin; do
39 name="$(basename "$i")"
40 makeWrapper $i $out/bin/''${name%-bin} \
41 --chdir "${game}/System"
44 mkdir -p $out/share/applications
45 ln -s ${desktop}/share/applications/* $out/share/applications