lol
1{stdenv, fetchurl, mesa, tcl, tk, file, libXmu, cmake, libtool, qt4,
2ftgl, freetype}:
3
4stdenv.mkDerivation rec {
5 name = "opencascade-oce-0.17.2";
6 src = fetchurl {
7 url = https://github.com/tpaviot/oce/archive/OCE-0.17.2.tar.gz;
8 sha256 = "0vpmnb0k5y2f7lpmwx9pg9yfq24zjvnsak5alzacncfm1hv9b6cd";
9 };
10
11 buildInputs = [ mesa tcl tk file libXmu libtool qt4 ftgl freetype cmake ];
12
13 preConfigure = ''
14 cmakeFlags="$cmakeFlags -DOCE_INSTALL_PREFIX=$out"
15 '';
16
17 # https://bugs.freedesktop.org/show_bug.cgi?id=83631
18 NIX_CFLAGS_COMPILE = "-DGLX_GLXEXT_LEGACY";
19
20 enableParallelBuilding = true;
21
22 meta = {
23 description = "Open CASCADE Technology, libraries for 3D modeling and numerical simulation";
24 homepage = http://www.opencascade.org/;
25 maintainers = with stdenv.lib.maintainers; [viric];
26 platforms = with stdenv.lib.platforms; linux;
27 };
28}