diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/opencascade-occt')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/opencascade-occt/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/opencascade-occt/default.nix b/nixpkgs/pkgs/development/libraries/opencascade-occt/default.nix new file mode 100644 index 000000000000..59c1f0ef7dbc --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/opencascade-occt/default.nix @@ -0,0 +1,29 @@ +{ lib, stdenv, fetchurl, fetchpatch, cmake, ninja, tcl, tk, + libGL, libGLU, libXext, libXmu, libXi, darwin }: + +stdenv.mkDerivation rec { + pname = "opencascade-occt"; + version = "7.5.0"; + 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"; + sha256 = "0bpzpaqki3k6i7xmhan0f1c1fr05smpcmgrp4vh572j61lwpq1r3"; + }; + + nativeBuildInputs = [ cmake ninja ]; + buildInputs = [ tcl tk libGL libGLU libXext libXmu libXi ] + ++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Cocoa; + + meta = with 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 gebner ]; + platforms = platforms.all; + }; + +} |