nixpkgs/pkgs/by-name/od/ode/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
887 B
Nix
Raw Normal View History

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: {
pname = "ode";
2024-03-28 15:37:15 +00:00
version = "0.16.5";
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=";
};
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"
]);
meta = with lib; {
description = "Open Dynamics Engine";
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;
};
2023-12-11 18:31:46 +00:00
})