2023-12-11 18:31:46 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchurl,
|
|
|
|
darwin,
|
|
|
|
}:
|
2015-06-16 18:51:57 +00:00
|
|
|
|
2023-12-11 18:31:46 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "ode";
|
2024-03-28 15:37:15 +00:00
|
|
|
version = "0.16.5";
|
2008-11-30 16:50:05 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-12-11 18:31:46 +00:00
|
|
|
url = "https://bitbucket.org/odedevs/ode/downloads/ode-${finalAttrs.version}.tar.gz";
|
2024-03-28 15:37:15 +00:00
|
|
|
hash = "sha256-uode3RZFcJWHle6qcPFIU7/DTMmHH4rd6NpH4SvVRnk=";
|
2008-11-30 16:50:05 +00:00
|
|
|
};
|
|
|
|
|
2023-12-11 18:31:46 +00:00
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.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"
|
|
|
|
]);
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2008-11-30 16:50:05 +00:00
|
|
|
description = "Open Dynamics Engine";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "ode-config";
|
2021-07-19 15:17:02 +00:00
|
|
|
homepage = "https://www.ode.org";
|
2023-12-11 18:31:46 +00:00
|
|
|
license = with licenses; [
|
|
|
|
bsd3
|
|
|
|
lgpl21Only
|
|
|
|
lgpl3Only
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
maintainers = with maintainers; [ wegank ];
|
|
|
|
platforms = platforms.unix;
|
2008-11-30 16:50:05 +00:00
|
|
|
};
|
2023-12-11 18:31:46 +00:00
|
|
|
})
|