2022-08-12 12:06:08 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, boost
|
|
|
|
, cmake
|
|
|
|
, libGL
|
|
|
|
, libGLU
|
|
|
|
, libX11
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "coin";
|
2024-06-24 18:47:55 +00:00
|
|
|
version = "4.0.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-10-07 09:15:18 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "coin3d";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "coin";
|
2024-06-24 18:47:55 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
|
|
|
hash = "sha256-tBegPZQme5McC0HGvjjdIBQQl59Ud4aJk2hONWMzEdc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
boost
|
|
|
|
libGL
|
|
|
|
libGLU
|
2024-06-24 18:47:55 +00:00
|
|
|
] ++ lib.optional stdenv.isLinux libX11;
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
cmakeFlags = [ "-DCOIN_USE_CPACK=OFF" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-10-07 09:15:18 +00:00
|
|
|
homepage = "https://github.com/coin3d/coin";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "High-level, retained-mode toolkit for effective 3D graphics development";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "coin-config";
|
2022-08-12 12:06:08 +00:00
|
|
|
license = licenses.bsd3;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = with maintainers; [ gebner ];
|
2024-06-24 18:47:55 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2022-08-12 12:06:08 +00:00
|
|
|
})
|