linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / opencascade-occt / default.nix
blob59c1f0ef7dbc48c93cd7292e2c47a61d057816cf
1 { lib, stdenv, fetchurl, fetchpatch, cmake, ninja, tcl, tk,
2   libGL, libGLU, libXext, libXmu, libXi, darwin }:
4 stdenv.mkDerivation rec {
5   pname = "opencascade-occt";
6   version = "7.5.0";
7   commit = "V${builtins.replaceStrings ["."] ["_"] version}";
9   src = fetchurl {
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 = "0bpzpaqki3k6i7xmhan0f1c1fr05smpcmgrp4vh572j61lwpq1r3";
13   };
15   nativeBuildInputs = [ cmake ninja ];
16   buildInputs = [ tcl tk libGL libGLU libXext libXmu libXi ]
17     ++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Cocoa;
19   meta = with lib; {
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;
27   };