2013-03-15 14:34:07 +01:00
|
|
|
{stdenv, fetchurl, mesa, tcl, tk, file, libXmu, cmake, libtool, qt4,
|
|
|
|
ftgl, freetype}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-08-26 12:06:10 +02:00
|
|
|
name = "opencascade-oce-0.16";
|
2013-03-15 14:34:07 +01:00
|
|
|
src = fetchurl {
|
2014-08-26 12:06:10 +02:00
|
|
|
url = https://github.com/tpaviot/oce/archive/OCE-0.16.tar.gz;
|
|
|
|
sha256 = "05bmg1cjz827bpq8s0hp96byirm4c3zc9vx26qz76kjsg8ry87w4";
|
2013-03-15 14:34:07 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ mesa tcl tk file libXmu libtool qt4 ftgl freetype cmake ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
cmakeFlags="$cmakeFlags -DOCE_INSTALL_PREFIX=$out"
|
|
|
|
'';
|
|
|
|
|
2015-03-06 14:44:01 +01:00
|
|
|
# https://bugs.freedesktop.org/show_bug.cgi?id=83631
|
|
|
|
NIX_CFLAGS_COMPILE = "-DGLX_GLXEXT_LEGACY";
|
|
|
|
|
2013-03-15 14:34:07 +01:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|