3
0
Fork 0
forked from mirrors/nixpkgs

opencascade: fix build

This commit is contained in:
Robert Helgesson 2016-09-05 21:52:04 +02:00
parent 06d55c7e27
commit 3d0c9ba599
No known key found for this signature in database
GPG key ID: C3DB11069E65DC86

View file

@ -9,16 +9,25 @@ stdenv.mkDerivation rec {
buildInputs = [ cmake mesa tcl tk file libXmu qt4 freetype ];
preUnpack = ''
sourceRoot=`pwd`/ros/adm/cmake
cmakeFlags="$cmakeFlags -DINSTALL_DIR=$out -D3RDPARTY_TCL_DIR=${tcl} -D3RDPARTY_FREETYPE_DIR=${freetype.dev}"
'';
sourceRoot = "ros/adm/cmake";
cmakeFlags = [
"-D3RDPARTY_TCL_DIR=${tcl}"
"-D3RDPARTY_FREETYPE_DIR=${freetype.dev}"
# Not used on Linux but must be defined during configuration.
"-D3RDPARTY_FREETYPE_DLL=${freetype.dev}"
];
# https://bugs.freedesktop.org/show_bug.cgi?id=83631
NIX_CFLAGS_COMPILE = "-DGLX_GLXEXT_LEGACY";
hardeningDisable = [ "format" ];
preConfigure = ''
cmakeFlags="$cmakeFlags -DINSTALL_DIR=$out"
'';
postInstall = ''
mv $out/inc $out/include
mkdir -p $out/share/doc/${name}