nixpkgs/pkgs/by-name/co/coin3d/package.nix

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

41 lines
847 B
Nix
Raw Normal View History

2022-08-07 03:09:47 +00:00
{ lib
, stdenv
, fetchFromGitHub
, boost
, cmake
, libGL
, libGLU
, libX11
}:
2022-08-07 03:09:47 +00:00
stdenv.mkDerivation (finalAttrs: {
2019-06-15 16:43:52 +00:00
pname = "coin";
2024-09-05 12:33:01 +00:00
version = "4.0.3";
2020-09-26 10:52:23 +00:00
src = fetchFromGitHub {
owner = "coin3d";
2019-06-15 16:43:52 +00:00
repo = "coin";
rev = "v${finalAttrs.version}";
2024-09-16 06:00:19 +00:00
hash = "sha256-dUFmcUOdNc3ZFtr+Hnh3Q3OY/JA/WxmiRJiU2RFSSus=";
};
2019-06-15 16:43:52 +00:00
nativeBuildInputs = [ cmake ];
2022-08-07 03:09:47 +00:00
buildInputs = [
boost
libGL
libGLU
] ++ lib.optional stdenv.hostPlatform.isLinux libX11;
2022-08-07 03:09:47 +00:00
cmakeFlags = [ "-DCOIN_USE_CPACK=OFF" ];
meta = with lib; {
2020-09-26 10:52:23 +00:00
homepage = "https://github.com/coin3d/coin";
description = "High-level, retained-mode toolkit for effective 3D graphics development";
mainProgram = "coin-config";
2022-08-07 03:09:47 +00:00
license = licenses.bsd3;
maintainers = with maintainers; [ gebner ];
platforms = platforms.linux ++ platforms.darwin;
};
2022-08-07 03:09:47 +00:00
})