Author: raskin
Date: Mon Apr 4 05:01:53 2011
New Revision: 26673
URL: https://svn.nixos.org/websvn/nix/?rev=26673&sc=1
Log:
Adding Speed Dreams (a TORCS fork)
Added:
nixpkgs/trunk/pkgs/games/speed-dreams/
nixpkgs/trunk/pkgs/games/speed-dreams/default.nix
Modified:
nixpkgs/trunk/pkgs/top-level/all-packages.nix
Added: nixpkgs/trunk/pkgs/games/speed-dreams/default.nix
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ nixpkgs/trunk/pkgs/games/speed-dreams/default.nix Mon Apr 4 05:01:53
2011 (r26673)
@@ -0,0 +1,34 @@
+{ fetchurl, stdenv, mesa, freeglut, libX11, plib, openal, freealut, libXrandr,
xproto,
+libXext, libSM, libICE, libXi, libXt, libXrender, libXxf86vm,
+libpng, zlib, bash, p7zip, SDL, enet, libjpeg, cmake}:
+
+stdenv.mkDerivation rec {
+ version = "2.0.0-a3-r3412";
+ name = "speed-dreams-${version}";
+
+ src = fetchurl {
+ url = "mirror://sourceforge/speed-dreams/2.0.0/${name}-src.tar.7z";
+ sha256 = "0hn5fgn90wmd1xha1la133harx47qc647f4zj8hfdvd7wb3kpjab";
+ };
+
+ unpackPhase = ''
+ 7z e -so ${src} | tar -x
+ cd */
+ '';
+
+ buildInputs = [ mesa freeglut libX11 plib openal freealut libXrandr xproto
+ libXext libSM libICE libXi libXt libXrender libXxf86vm libpng zlib bash
+ p7zip SDL enet libjpeg cmake];
+
+ installTargets = "install";
+
+ dontUseCmakeBuildDir=true;
+
+ meta = {
+ description = "Car racing game - TORCS fork with more experimental
approach";
+ homepage = http://speed-dreams.sourceforge.net/;
+ license = "GPLv2+";
+ maintainers = with stdenv.lib.maintainers; [viric raskin];
+ platforms = with stdenv.lib.platforms; linux;
+ };
+}
Modified: nixpkgs/trunk/pkgs/top-level/all-packages.nix
==============================================================================
--- nixpkgs/trunk/pkgs/top-level/all-packages.nix Mon Apr 4 02:34:17
2011 (r26672)
+++ nixpkgs/trunk/pkgs/top-level/all-packages.nix Mon Apr 4 05:01:53
2011 (r26673)
@@ -7276,6 +7276,12 @@
tremulous = callPackage ../games/tremulous { };
+ speed_dreams = callPackage ../games/speed-dreams {
+ # Torcs wants to make shared libraries linked with plib libraries (it
provides static).
+ # i686 is the only platform I know than can do that linking without plib
built with -fPIC
+ plib = plib.override { enablePIC = if stdenv.isi686 then false else true;
};
+ };
+
torcs = callPackage ../games/torcs {
# Torcs wants to make shared libraries linked with plib libraries (it
provides static).
# i686 is the only platform I know than can do that linking without plib
built with -fPIC
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits