mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 23:52:33 +00:00
aa706dc2c8
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/opencascade-oce/versions
36 lines
1 KiB
Nix
36 lines
1 KiB
Nix
{stdenv, fetchurl, libGLU_combined, tcl, tk, file, libXmu, cmake, libtool, qt4,
|
|
ftgl, freetype}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "opencascade-oce-0.18.3";
|
|
src = fetchurl {
|
|
url = https://github.com/tpaviot/oce/archive/OCE-0.18.3.tar.gz;
|
|
sha256 = "0v4ny0qhr5hiialb2ss25bllfnd6j4g7mfxnqfmr1xsjpykxcly5";
|
|
};
|
|
|
|
buildInputs = [ libGLU_combined tcl tk file libXmu libtool qt4 ftgl freetype cmake ];
|
|
|
|
# Fix for glibc 2.26
|
|
postPatch = ''
|
|
sed -i -e 's/^\( *#include <\)x\(locale.h>\)//' \
|
|
src/Standard/Standard_CLocaleSentry.hxx
|
|
'';
|
|
|
|
preConfigure = ''
|
|
cmakeFlags="$cmakeFlags -DOCE_INSTALL_PREFIX=$out"
|
|
'';
|
|
|
|
# https://bugs.freedesktop.org/show_bug.cgi?id=83631
|
|
NIX_CFLAGS_COMPILE = "-DGLX_GLXEXT_LEGACY";
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Open CASCADE Technology, libraries for 3D modeling and numerical simulation";
|
|
homepage = http://www.opencascade.org/;
|
|
maintainers = [ maintainers.viric ];
|
|
platforms = platforms.linux;
|
|
license = licenses.lgpl21;
|
|
};
|
|
}
|