forked from mirrors/nixpkgs
1487317910
* opencascade-occt: init at 7.3.0p2 This is just a package of the official OpenCASCADE OCCT (not OCE).
43 lines
1 KiB
Nix
43 lines
1 KiB
Nix
{ stdenv
|
|
, fetchurl
|
|
, cmake
|
|
, tcl
|
|
, tk
|
|
, vtk
|
|
, mesa_glu
|
|
, libXext
|
|
, libXmu
|
|
, libXi
|
|
, doxygen
|
|
}:
|
|
|
|
let version = "7.3.0p2";
|
|
commit = "V${builtins.replaceStrings ["."] ["_"] version}";
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
name = "opencascade-occt-${version}";
|
|
|
|
src = fetchurl {
|
|
name = "occt-${commit}.tar.gz";
|
|
url = "https://git.dev.opencascade.org/gitweb/?p=occt.git;a=snapshot;h=${commit};sf=tgz";
|
|
sha256 = "0nc9k1nqpj0n99pr7qkva79irmqhh007dffwghiyzs031zhd7i6w";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ tcl tk vtk mesa_glu libXext libXmu libXi doxygen ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
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.
|
|
maintainers = with maintainers; [ amiloradovsky ];
|
|
platforms = platforms.all;
|
|
};
|
|
|
|
}
|