depot/third_party/nixpkgs/pkgs/development/libraries/coin3d/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

40 lines
847 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, boost
, cmake
, libGL
, libGLU
, libX11
}:
stdenv.mkDerivation (finalAttrs: {
pname = "coin";
version = "4.0.3";
src = fetchFromGitHub {
owner = "coin3d";
repo = "coin";
rev = "v${finalAttrs.version}";
hash = "sha256-dUFmcUOdNc3ZFtr+Hnh3Q3OY/JA/WxmiRJiU2RFSSus=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [
boost
libGL
libGLU
] ++ lib.optional stdenv.hostPlatform.isLinux libX11;
cmakeFlags = [ "-DCOIN_USE_CPACK=OFF" ];
meta = with lib; {
homepage = "https://github.com/coin3d/coin";
description = "High-level, retained-mode toolkit for effective 3D graphics development";
mainProgram = "coin-config";
license = licenses.bsd3;
maintainers = with maintainers; [ gebner ];
platforms = platforms.linux ++ platforms.darwin;
};
})