mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
opencascade: fix build
This commit is contained in:
parent
06d55c7e27
commit
3d0c9ba599
1 changed files with 13 additions and 4 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue