nixpkgs/pkgs/development/libraries/opencascade/default.nix

35 lines
1.0 KiB
Nix
Raw Normal View History

{stdenv, fetchurl, libGLU_combined, tcl, tk, file, libXmu, cmake, libtool, qt4,
2017-09-21 21:46:02 +00:00
ftgl, freetype}:
stdenv.mkDerivation rec {
2017-09-21 21:46:02 +00:00
name = "opencascade-oce-0.17.2";
src = fetchurl {
2017-09-21 21:46:02 +00:00
url = https://github.com/tpaviot/oce/archive/OCE-0.17.2.tar.gz;
sha256 = "0vpmnb0k5y2f7lpmwx9pg9yfq24zjvnsak5alzacncfm1hv9b6cd";
};
buildInputs = [ libGLU_combined tcl tk file libXmu libtool qt4 ftgl freetype cmake ];
2016-02-12 16:10:06 +00:00
# Fix for glibc 2.26
postPatch = ''
sed -i -e 's/^\( *#include <\)x\(locale.h>\)//' \
src/Standard/Standard_CLocaleSentry.hxx
'';
2016-09-05 19:52:04 +00:00
preConfigure = ''
2017-09-21 21:46:02 +00:00
cmakeFlags="$cmakeFlags -DOCE_INSTALL_PREFIX=$out"
2016-09-05 19:52:04 +00:00
'';
2017-09-21 21:46:02 +00:00
# https://bugs.freedesktop.org/show_bug.cgi?id=83631
NIX_CFLAGS_COMPILE = "-DGLX_GLXEXT_LEGACY";
enableParallelBuilding = true;
meta = {
description = "Open CASCADE Technology, libraries for 3D modeling and numerical simulation";
homepage = http://www.opencascade.org/;
maintainers = with stdenv.lib.maintainers; [viric];
platforms = with stdenv.lib.platforms; linux;
};
}