diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2014-07-01 13:58:11 +0400 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2014-07-01 13:58:11 +0400 |
commit | be4bdff8ab1358694a048475b4a95074e9eae6d6 (patch) | |
tree | 4e620630eb190d070552b82e5b7cbbd13053adf9 /pkgs/development/libraries/box2d | |
parent | 874e4d7d2329fcbefbb48f03b4fb605e12968236 (diff) |
Update Box2D to 2.3.0. I fail to build 2.3.1, though.
Diffstat (limited to 'pkgs/development/libraries/box2d')
-rw-r--r-- | pkgs/development/libraries/box2d/default.nix | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/pkgs/development/libraries/box2d/default.nix b/pkgs/development/libraries/box2d/default.nix index 9d261191fbba4..74875e41783fb 100644 --- a/pkgs/development/libraries/box2d/default.nix +++ b/pkgs/development/libraries/box2d/default.nix @@ -1,6 +1,6 @@ x@{builderDefsPackage , unzip, cmake, mesa, freeglut, libX11, xproto - , inputproto, libXi + , inputproto, libXi, fetchsvn, pkgconfig , ...}: builderDefsPackage (a : @@ -10,21 +10,17 @@ let buildInputs = map (n: builtins.getAttr n x) (builtins.attrNames (builtins.removeAttrs x helperArgNames)); - sourceInfo = rec { - baseName="box2d"; - version="2.1.2"; - name="${baseName}-${version}"; - url="http://box2d.googlecode.com/files/Box2D_v${version}.zip"; - hash="0m5szd74ig8yqazwk2g3zl4z7wwp08k52awawk1pigy6a4z1qd9v"; - }; in rec { - src = a.fetchurl { - url = sourceInfo.url; - sha256 = sourceInfo.hash; + version = "2.3.0"; + name = "box2d-${version}"; + srcDrv = a.fetchsvn { + url = "http://box2d.googlecode.com/svn/trunk"; + rev = "277"; + sha256 = "1xp93yw2zcqhmh999v7cwqaqxq1glgyg5r8kfm4yabc1ypba3in4"; }; + src = srcDrv + "/"; - inherit (sourceInfo) name version; inherit buildInputs; phaseNames = ["changeSettings" "doCmake" "doMakeInstall"]; @@ -49,11 +45,7 @@ rec { platforms = with a.lib.platforms; linux; license = "bsd"; - }; - passthru = { - updateInfo = { - downloadPage = "http://code.google.com/p/box2d/downloads/list"; - }; + inherit version; }; }) x |