2017-09-21 23:46:02 +02:00
|
|
|
{stdenv, fetchurl, mesa, tcl, tk, file, libXmu, cmake, libtool, qt4,
|
|
|
|
ftgl, freetype}:
|
2009-01-27 09:14:27 +01:00
|
|
|
|
2010-01-27 19:27:55 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2017-09-21 23:46:02 +02:00
|
|
|
name = "opencascade-oce-0.17.2";
|
2009-01-27 09:14:27 +01:00
|
|
|
src = fetchurl {
|
2017-09-21 23:46:02 +02:00
|
|
|
url = https://github.com/tpaviot/oce/archive/OCE-0.17.2.tar.gz;
|
|
|
|
sha256 = "0vpmnb0k5y2f7lpmwx9pg9yfq24zjvnsak5alzacncfm1hv9b6cd";
|
2009-01-27 09:14:27 +01:00
|
|
|
};
|
|
|
|
|
2017-09-21 23:46:02 +02:00
|
|
|
buildInputs = [ mesa tcl tk file libXmu libtool qt4 ftgl freetype cmake ];
|
2016-02-12 17:10:06 +01:00
|
|
|
|
2016-09-05 21:52:04 +02:00
|
|
|
preConfigure = ''
|
2017-09-21 23:46:02 +02:00
|
|
|
cmakeFlags="$cmakeFlags -DOCE_INSTALL_PREFIX=$out"
|
2016-09-05 21:52:04 +02:00
|
|
|
'';
|
|
|
|
|
2017-09-21 23:46:02 +02:00
|
|
|
# https://bugs.freedesktop.org/show_bug.cgi?id=83631
|
|
|
|
NIX_CFLAGS_COMPILE = "-DGLX_GLXEXT_LEGACY";
|
2010-01-27 19:27:55 +01:00
|
|
|
|
2012-03-02 14:47:37 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2009-01-27 09:14:27 +01:00
|
|
|
meta = {
|
|
|
|
description = "Open CASCADE Technology, libraries for 3D modeling and numerical simulation";
|
|
|
|
homepage = http://www.opencascade.org/;
|
2009-10-01 22:18:17 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2009-01-27 09:14:27 +01:00
|
|
|
};
|
|
|
|
}
|