2024-05-05 18:22:16 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, cmake
|
|
|
|
, ninja
|
|
|
|
, tcl
|
|
|
|
, tk
|
|
|
|
, libGL
|
|
|
|
, libGLU
|
|
|
|
, libXext
|
|
|
|
, libXmu
|
|
|
|
, libXi
|
|
|
|
, darwin
|
|
|
|
}:
|
2019-02-17 20:54:54 +00:00
|
|
|
|
2019-06-16 10:00:09 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "opencascade-occt";
|
2024-05-05 18:22:16 +00:00
|
|
|
version = "7.8.1";
|
2019-06-16 10:00:09 +00:00
|
|
|
commit = "V${builtins.replaceStrings ["."] ["_"] version}";
|
2019-02-17 20:54:54 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
name = "occt-${commit}.tar.gz";
|
|
|
|
url = "https://git.dev.opencascade.org/gitweb/?p=occt.git;a=snapshot;h=${commit};sf=tgz";
|
2024-05-05 18:22:16 +00:00
|
|
|
hash = "sha256-AGMZqTLLjXbzJFW/RSTsohAGV8sMxlUmdU/Y2oOzkk8=";
|
2019-02-17 20:54:54 +00:00
|
|
|
};
|
|
|
|
|
2024-05-05 18:22:16 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
ninja
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
tcl
|
|
|
|
tk
|
|
|
|
libGL
|
|
|
|
libGLU
|
|
|
|
libXext
|
|
|
|
libXmu
|
|
|
|
libXi
|
|
|
|
] ++ lib.optional stdenv.hostPlatform.isDarwin darwin.apple_sdk.frameworks.Cocoa;
|
2019-02-17 20:54:54 +00:00
|
|
|
|
2024-10-13 07:15:58 +00:00
|
|
|
NIX_CFLAGS_COMPILE = [ "-fpermissive" ];
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2019-02-17 20:54:54 +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-09-26 09:38:49 +00:00
|
|
|
maintainers = with maintainers; [ amiloradovsky gebner ];
|
2019-02-17 20:54:54 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|