Merge pull request #273606 from wegank/ode-darwin
ode: refactor, add darwin support
This commit is contained in:
commit
76bc528892
@ -1,18 +1,33 @@
|
||||
{ lib, stdenv, fetchurl }:
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, darwin
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "ode";
|
||||
version = "0.16.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://bitbucket.org/odedevs/${pname}/downloads/${pname}-${version}.tar.gz";
|
||||
sha256 = "sha256-cQN7goHGyGsKVXKfkNXbaXq+TL7B2BGBV+ANSOwlNGc=";
|
||||
url = "https://bitbucket.org/odedevs/ode/downloads/ode-${finalAttrs.version}.tar.gz";
|
||||
hash = "sha256-cQN7goHGyGsKVXKfkNXbaXq+TL7B2BGBV+ANSOwlNGc=";
|
||||
};
|
||||
|
||||
buildInputs = lib.optionals stdenv.isDarwin [
|
||||
darwin.apple_sdk.frameworks.CoreServices
|
||||
darwin.apple_sdk.frameworks.GLUT
|
||||
];
|
||||
|
||||
env.CXXFLAGS = lib.optionalString stdenv.cc.isClang (toString [
|
||||
"-std=c++14"
|
||||
"-Wno-error=c++11-narrowing"
|
||||
]);
|
||||
|
||||
meta = with lib; {
|
||||
description = "Open Dynamics Engine";
|
||||
homepage = "https://www.ode.org";
|
||||
platforms = platforms.linux;
|
||||
license = with licenses; [ bsd3 lgpl21 lgpl3 zlib ];
|
||||
license = with licenses; [ bsd3 lgpl21Only lgpl3Only zlib ];
|
||||
maintainers = with maintainers; [ wegank ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user