diff options
author | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2011-03-28 16:08:21 +0000 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2011-03-28 16:08:21 +0000 |
commit | 655a9ea9c37c2368996251120c09843fd673fc6e (patch) | |
tree | 337524f44926e0cfbc62989f86ad3fd79488f834 /pkgs | |
parent | 97182f0bcbe0ebbecf1d320f1f079228273fd1e8 (diff) |
Adding the racing videogame VDrift.
I added the asio library as a side effect. svn path=/nixpkgs/trunk/; revision=26575
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/libraries/asio/default.nix | 20 | ||||
-rw-r--r-- | pkgs/games/vdrift/default.nix | 28 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 6 |
3 files changed, 53 insertions, 1 deletions
diff --git a/pkgs/development/libraries/asio/default.nix b/pkgs/development/libraries/asio/default.nix new file mode 100644 index 0000000000000..acf53c708e08c --- /dev/null +++ b/pkgs/development/libraries/asio/default.nix @@ -0,0 +1,20 @@ +{stdenv, fetchurl, boost, openssl}: + +stdenv.mkDerivation rec { + name = "asio-1.5.3"; + + src = fetchurl { + url = "mirror://sourceforge/asio/${name}.tar.bz2"; + sha256 = "08fdsv1zhwbfwlx3r3dzl1371lxy5gw92ms0kqcscxqn0ycf3rlj"; + }; + + propagatedBuildInputs = [ boost ]; + buildInputs = [ openssl ]; + + meta = { + homepage = http://asio.sourceforge.net/; + description = "Cross-platform C++ library for network and low-level I/O programming"; + license = "boost"; + }; + +} diff --git a/pkgs/games/vdrift/default.nix b/pkgs/games/vdrift/default.nix new file mode 100644 index 0000000000000..586bfc3e511d3 --- /dev/null +++ b/pkgs/games/vdrift/default.nix @@ -0,0 +1,28 @@ +{ fetchurl, stdenv, mesa, SDL, scons, freeglut, SDL_image, glew, libvorbis, + asio, boost, SDL_gfx }: + +stdenv.mkDerivation rec { + name = "vdrift-2010-06-30"; + + src = fetchurl { + url = "mirror://sourceforge/vdrift/${name}.tar.bz2"; + sha256 = "1zbh62363gx4ayyx4wcsp5di4f16qqfg2ajwkgw71kss6j7lk71j"; + }; + + buildInputs = [ scons mesa SDL freeglut SDL_image glew libvorbis asio boost + SDL_gfx ]; + + buildPhase = '' + sed -i -e s,/usr/local,$out, SConstruct + scons + ''; + installPhase = "scons install"; + + meta = { + description = "Car racing game"; + homepage = http://vdrift.net/; + license = "GPLv2+"; + maintainers = with stdenv.lib.maintainers; [viric]; + platforms = with stdenv.lib.platforms; linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 44b97b4004c92..8a134f400c417 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2748,6 +2748,8 @@ let bdbSupport = true; }; + asio = callPackage ../development/libraries/asio { }; + aspell = callPackage ../development/libraries/aspell { }; aspellDicts = recurseIntoAttrs (import ../development/libraries/aspell/dictionaries.nix { @@ -7194,7 +7196,9 @@ let ut2004demo = callPackage ../games/ut2004demo { }; - warmux = callPackage ../games/warmux {}; + vdrift = callPackage ../games/vdrift { }; + + warmux = callPackage ../games/warmux { }; warsow = callPackage ../games/warsow { libjpeg = libjpeg62; |