2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch, cmake, ninja, tcl, tk,
|
2020-10-07 09:15:18 +00:00
|
|
|
libGL, libGLU, libXext, libXmu, libXi, darwin }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "opencascade-occt";
|
2020-11-12 23:50:31 +00:00
|
|
|
version = "7.5.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
commit = "V${builtins.replaceStrings ["."] ["_"] version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
name = "occt-${commit}.tar.gz";
|
|
|
|
url = "https://git.dev.opencascade.org/gitweb/?p=occt.git;a=snapshot;h=${commit};sf=tgz";
|
2020-11-12 23:50:31 +00:00
|
|
|
sha256 = "0bpzpaqki3k6i7xmhan0f1c1fr05smpcmgrp4vh572j61lwpq1r3";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ninja ];
|
2020-10-07 09:15:18 +00:00
|
|
|
buildInputs = [ tcl tk libGL libGLU libXext libXmu libXi ]
|
2021-02-05 17:12:51 +00:00
|
|
|
++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Cocoa;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Open CASCADE Technology, libraries for 3D modeling and numerical simulation";
|
|
|
|
homepage = "https://www.opencascade.org/";
|
|
|
|
license = licenses.lgpl21; # essentially...
|
|
|
|
# The special exception defined in the file OCCT_LGPL_EXCEPTION.txt
|
|
|
|
# are basically about making the license a little less share-alike.
|
2020-10-07 09:15:18 +00:00
|
|
|
maintainers = with maintainers; [ amiloradovsky gebner ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|