2024-01-02 11:29:13 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, darwin
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "ode";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.16.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-01-02 11:29:13 +00:00
|
|
|
url = "https://bitbucket.org/odedevs/ode/downloads/ode-${finalAttrs.version}.tar.gz";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-uode3RZFcJWHle6qcPFIU7/DTMmHH4rd6NpH4SvVRnk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
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"
|
|
|
|
]);
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Open Dynamics Engine";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "ode-config";
|
2021-07-21 07:28:18 +00:00
|
|
|
homepage = "https://www.ode.org";
|
2024-01-02 11:29:13 +00:00
|
|
|
license = with licenses; [ bsd3 lgpl21Only lgpl3Only zlib ];
|
|
|
|
maintainers = with maintainers; [ wegank ];
|
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2024-01-02 11:29:13 +00:00
|
|
|
})
|