git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #15667 from joachifm/delete-box2d_2_0_1

box2d_2_0_1: delete expression

commite746e1ffbc8ff2283cb696ec6f0c23ce726ede87 authorJoachim Fasting <joachifm@users.noreply.github.com> dateFri 27 May 2016, 00:34 (11 years ago) parent1c0718345aa274
2 files changed−84
pkgs/development/libraries/box2d/2.0.1.nix−83 pkgs/top-level/all-packages.nix−1
pkgs/development/libraries/box2d/2.0.1.nixdeleted−83
@@ -1,83 +0,0 @@
1−x@{builderDefsPackage
2− , unzip, cmake, mesa, freeglut, libX11, xproto
3− , inputproto, libXi
4− , ...}:
5−builderDefsPackage
6−(a :
7−let
8− helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
9− [];
10−
11− buildInputs = map (n: builtins.getAttr n x)
12− (builtins.attrNames (builtins.removeAttrs x helperArgNames));
13− sourceInfo = rec {
14− baseName="box2d";
15− version="2.0.1";
16− name="${baseName}-${version}";
17− url="http://box2d.googlecode.com/files/Box2D_v${version}.zip";
18− hash="62857048aa089b558561074154430883cee491eedd71247f75f488cba859e21f";
19− };
20−in
21−rec {
22− src = a.fetchurl {
23− url = sourceInfo.url;
24− sha256 = sourceInfo.hash;
25− };
26−
27− inherit (sourceInfo) name version;
28− inherit buildInputs;
29−
30− phaseNames = ["fixIncludes" "setVars" "changeSettings" "doMake" "doDeploy"];
31−
32− goSrcDir = ''cd Box2D'';
33−
34− fixIncludes = a.fullDepEntry ''
35− sed -i Source/Dynamics/Contacts/b2PolyContact.cpp \
36− -i Source/Dynamics/Contacts/b2CircleContact.cpp \
37− -i Source/Dynamics/Contacts/b2PolyAndCircleContact.cpp \
38− -i Source/Common/b2BlockAllocator.cpp \
39− -i Source/Collision/b2BroadPhase.cpp \
40− -i Examples/TestBed/Framework/Render.cpp \
41− -i Examples/TestBed/Tests/BroadPhaseTest.cpp \
42− -i Examples/TestBed/Tests/TestEntries.cpp \
43− -e '1i#include <string.h>'
44− '' ["minInit" "addInputs" "doUnpack"];
45−
46− setVars = a.noDepEntry ''
47− export NIX_LDFLAGS="$NIX_LDFLAGS -lX11 -lXi"
48− '';
49−
50− doDeploy = a.fullDepEntry ''
51− mkdir -p "$out"/lib
52− mkdir -p "$out"/include/Box2D
53− cp Library/* Source/Gen/float/lib*.{a,so} "$out"/lib
54− cp -r Source "$out"/include/Box2D/Source
55− find "$out"/include/Box2D/Source ! -name '*.h' -exec rm '{}' ';'
56− sed -e s@../Source@Box2D/Source@ -i Include/Box2D.h
57− cp Include/Box2D.h "$out"/include/Box2D
58− mkdir -p "$out/share"
59− cp -r Examples "$out/share"
60− '' ["minInit" "addInputs" "doMake" "defEnsureDir"];
61−
62− changeSettings = a.fullDepEntry ''
63− sed -i Source/Common/b2Settings.h -e 's@b2_maxPolygonVertices .*@b2_maxPolygonVertices = 15;@'
64− '' ["minInit" "addInputs" "doUnpack"];
65−
66− meta = {
67− description = "2D physics engine";
68− maintainers = with a.lib.maintainers;
69− [
70− raskin
71− ];
72− platforms = with a.lib.platforms;
73− linux;
74− license = "bsd";
75− branch = "2.0.1";
76− };
77− passthru = {
78− updateInfo = {
79− downloadPage = "http://code.google.com/p/box2d/downloads/list";
80− };
81− };
82−}) x
83−
pkgs/top-level/all-packages.nix−1
@@ -6633,7 +6633,6 @@ in
66336633 botanUnstable = callPackage ../development/libraries/botan/unstable.nix { };
66346634
66356635 box2d = callPackage ../development/libraries/box2d { };
6636− box2d_2_0_1 = callPackage ../development/libraries/box2d/2.0.1.nix { };
66376636
66386637 breakpad = callPackage ../development/libraries/breakpad { };
66396638