mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
Merge pull request #145385 from marius851000/bullet317
bullet: 2.87 -> 3.17
This commit is contained in:
commit
991b66a5bc
@ -4,22 +4,23 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "bullet";
|
pname = "bullet";
|
||||||
version = "2.87";
|
version = "3.17";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "bulletphysics";
|
owner = "bulletphysics";
|
||||||
repo = "bullet3";
|
repo = "bullet3";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "1msp7w3563vb43w70myjmqsdb97kna54dcfa7yvi9l3bvamb92w3";
|
sha256 = "sha256-uQ4X8F8nmagbcFh0KexrmnhHIXFSB3A1CCnjPVeHL3Q=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
buildInputs = lib.optionals stdenv.isLinux [ libGLU libGL freeglut ]
|
buildInputs = lib.optionals stdenv.isLinux [ libGLU libGL freeglut ]
|
||||||
++ lib.optionals stdenv.isDarwin [ Cocoa OpenGL ];
|
++ lib.optionals stdenv.isDarwin [ Cocoa OpenGL ];
|
||||||
|
|
||||||
patches = [ ./gwen-narrowing.patch ];
|
postPatch = ''
|
||||||
|
substituteInPlace examples/ThirdPartyLibs/Gwen/CMakeLists.txt \
|
||||||
postPatch = lib.optionalString stdenv.isDarwin ''
|
--replace "-DGLEW_STATIC" "-DGLEW_STATIC -Wno-narrowing"
|
||||||
|
'' + lib.optionalString stdenv.isDarwin ''
|
||||||
sed -i 's/FIND_PACKAGE(OpenGL)//' CMakeLists.txt
|
sed -i 's/FIND_PACKAGE(OpenGL)//' CMakeLists.txt
|
||||||
sed -i 's/FIND_LIBRARY(COCOA_LIBRARY Cocoa)//' CMakeLists.txt
|
sed -i 's/FIND_LIBRARY(COCOA_LIBRARY Cocoa)//' CMakeLists.txt
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user