mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-22 21:18:28 +03:00
Update Box2D to 2.3.0. I fail to build 2.3.1, though.
This commit is contained in:
parent
874e4d7d23
commit
be4bdff8ab
@ -1,6 +1,6 @@
|
|||||||
x@{builderDefsPackage
|
x@{builderDefsPackage
|
||||||
, unzip, cmake, mesa, freeglut, libX11, xproto
|
, unzip, cmake, mesa, freeglut, libX11, xproto
|
||||||
, inputproto, libXi
|
, inputproto, libXi, fetchsvn, pkgconfig
|
||||||
, ...}:
|
, ...}:
|
||||||
builderDefsPackage
|
builderDefsPackage
|
||||||
(a :
|
(a :
|
||||||
@ -10,21 +10,17 @@ let
|
|||||||
|
|
||||||
buildInputs = map (n: builtins.getAttr n x)
|
buildInputs = map (n: builtins.getAttr n x)
|
||||||
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
(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
|
in
|
||||||
rec {
|
rec {
|
||||||
src = a.fetchurl {
|
version = "2.3.0";
|
||||||
url = sourceInfo.url;
|
name = "box2d-${version}";
|
||||||
sha256 = sourceInfo.hash;
|
srcDrv = a.fetchsvn {
|
||||||
|
url = "http://box2d.googlecode.com/svn/trunk";
|
||||||
|
rev = "277";
|
||||||
|
sha256 = "1xp93yw2zcqhmh999v7cwqaqxq1glgyg5r8kfm4yabc1ypba3in4";
|
||||||
};
|
};
|
||||||
|
src = srcDrv + "/";
|
||||||
|
|
||||||
inherit (sourceInfo) name version;
|
|
||||||
inherit buildInputs;
|
inherit buildInputs;
|
||||||
|
|
||||||
phaseNames = ["changeSettings" "doCmake" "doMakeInstall"];
|
phaseNames = ["changeSettings" "doCmake" "doMakeInstall"];
|
||||||
@ -49,11 +45,7 @@ rec {
|
|||||||
platforms = with a.lib.platforms;
|
platforms = with a.lib.platforms;
|
||||||
linux;
|
linux;
|
||||||
license = "bsd";
|
license = "bsd";
|
||||||
};
|
inherit version;
|
||||||
passthru = {
|
|
||||||
updateInfo = {
|
|
||||||
downloadPage = "http://code.google.com/p/box2d/downloads/list";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}) x
|
}) x
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user