mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +00:00
30 lines
1.1 KiB
Nix
30 lines
1.1 KiB
Nix
{ stdenv, fetchurl, fetchpatch, cmake, ninja, tcl, tk,
|
|
libGL, libGLU, libXext, libXmu, libXi, darwin }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "opencascade-occt";
|
|
version = "7.4.0p1";
|
|
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 = "0b9hs3akx1f3hhg4zdip6qdv04ssqqcf9kk12amkidgvsl73z2hs";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ninja ];
|
|
buildInputs = [ tcl tk libGL libGLU libXext libXmu libXi ]
|
|
++ stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Cocoa;
|
|
|
|
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 gebner ];
|
|
platforms = platforms.all;
|
|
};
|
|
|
|
}
|