1 { lib, stdenv, fetchurl, fetchpatch, cmake, ninja, tcl, tk,
2 libGL, libGLU, libXext, libXmu, libXi, darwin }:
4 stdenv.mkDerivation rec {
5 pname = "opencascade-occt";
7 commit = "V${builtins.replaceStrings ["."] ["_"] version}";
10 name = "occt-${commit}.tar.gz";
11 url = "https://git.dev.opencascade.org/gitweb/?p=occt.git;a=snapshot;h=${commit};sf=tgz";
12 sha256 = "sha256-n3KFrN/mN1SVXfuhEUAQ1fJzrCvhiclxfEIouyj9Z18=";
15 nativeBuildInputs = [ cmake ninja ];
16 buildInputs = [ tcl tk libGL libGLU libXext libXmu libXi ]
17 ++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Cocoa;
20 description = "Open CASCADE Technology, libraries for 3D modeling and numerical simulation";
21 homepage = "https://www.opencascade.org/";
22 license = licenses.lgpl21; # essentially...
23 # The special exception defined in the file OCCT_LGPL_EXCEPTION.txt
24 # are basically about making the license a little less share-alike.
25 maintainers = with maintainers; [ amiloradovsky gebner ];
26 platforms = platforms.all;