From ed8215aca7dde052a8bf1c48c94fd27d4e47b7f9 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Sun, 30 Nov 2008 16:50:05 +0000 Subject: [PATCH] Added Open Dynamics Engine svn path=/nixpkgs/trunk/; revision=13520 --- pkgs/development/libraries/ode/default.nix | 27 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 9 ++++++++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/development/libraries/ode/default.nix diff --git a/pkgs/development/libraries/ode/default.nix b/pkgs/development/libraries/ode/default.nix new file mode 100644 index 000000000000..35264f2cdf6c --- /dev/null +++ b/pkgs/development/libraries/ode/default.nix @@ -0,0 +1,27 @@ +args : +let + lib = args.lib; + fetchurl = args.fetchurl; + + version = lib.getAttr ["version"] "0.10.1" args; + buildInputs = with args; [ + + ]; +in +rec { + src = fetchurl { + url = "http://downloads.sourceforge.net/opende/ode-${version}.tar.bz2"; + sha256 = "0bm7kmm7qvrbk40pgaszqr66pjfvnln8vjzdmcdl2h1dxi3b4dln"; + }; + + inherit buildInputs; + configureFlags = []; + + /* doConfigure should be specified separately */ + phaseNames = ["doConfigure" "doMakeInstall"]; + + name = "ode-" + version; + meta = { + description = "Open Dynamics Engine"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 20eb73f14a70..0dbcfa58a203 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3523,6 +3523,9 @@ let inherit fetchurl stdenv perl zip; }; + ode = builderDefsPackage (import ../development/libraries/ode) { + }; + openal = import ../development/libraries/openal { inherit fetchurl stdenv cmake alsaLib; }; @@ -6654,6 +6657,12 @@ let inherit libtool gettext e2fsprogs; }; + xmoto = builderDefsPackage (import ../games/xmoto) { + inherit chipmunk sqlite curl zlib bzip2 libjpeg libpng + freeglut mesa SDL SDL_mixer SDL_image SDL_net SDL_ttf + lua5 ode; + }; + xorg_sys_opengl = import ../os-specific/linux/opengl/xorg-sys { inherit stdenv xlibs expat libdrm; };