diff options
author | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2010-08-22 14:18:58 +0000 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2010-08-22 14:18:58 +0000 |
commit | 53b8411c7a0b71aa33f9c595828a0ac829c3ee78 (patch) | |
tree | f41778f7326b21b0d3f58a86352373c60f9193b9 /pkgs/games/torcs/default.nix | |
parent | 397a10aba200482c9cba1933fc39359bc4148569 (diff) | |
download | nixlib-53b8411c7a0b71aa33f9c595828a0ac829c3ee78.tar nixlib-53b8411c7a0b71aa33f9c595828a0ac829c3ee78.tar.gz nixlib-53b8411c7a0b71aa33f9c595828a0ac829c3ee78.tar.bz2 nixlib-53b8411c7a0b71aa33f9c595828a0ac829c3ee78.tar.lz nixlib-53b8411c7a0b71aa33f9c595828a0ac829c3ee78.tar.xz nixlib-53b8411c7a0b71aa33f9c595828a0ac829c3ee78.tar.zst nixlib-53b8411c7a0b71aa33f9c595828a0ac829c3ee78.zip |
Adding torcs
svn path=/nixpkgs/trunk/; revision=23354
Diffstat (limited to 'pkgs/games/torcs/default.nix')
-rw-r--r-- | pkgs/games/torcs/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/games/torcs/default.nix b/pkgs/games/torcs/default.nix new file mode 100644 index 000000000000..7f7c95d3cd18 --- /dev/null +++ b/pkgs/games/torcs/default.nix @@ -0,0 +1,29 @@ +{ fetchurl, stdenv, mesa, freeglut, libX11, plib, openal, freealut, libXrandr, xproto, +libXext, libSM, libICE, libXi, libXt, libXrender, libXxf86vm, +libpng, zlib, bash }: + +stdenv.mkDerivation rec { + name = "torcs-1.3.1"; + + src = fetchurl { + url = "mirror://sourceforge/torcs/${name}.tar.bz2"; + sha256 = "1zai7nrx93pcv24r3fkr08831szj7vz3a6xy8fihlv6wvfnpn6wh"; + }; + + patchPhase = '' + sed -i -e s,/bin/bash,`type -P bash`, src/linux/torcs.in + ''; + + buildInputs = [ mesa freeglut libX11 plib openal freealut libXrandr xproto + libXext libSM libICE libXi libXt libXrender libXxf86vm libpng zlib bash ]; + + installTargets = "install datainstall"; + + meta = { + description = "Car racing game"; + homepage = http://torcs.sourceforge.net/; + license = "GPLv2+"; + maintainers = with stdenv.lib.maintainers; [viric]; + platforms = with stdenv.lib.platforms; linux; + }; +} |