mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
paraview, vtk: fix build after mesa update
This commit is contained in:
parent
0ce3dcd91a
commit
33153a2166
@ -29,6 +29,9 @@ stdenv.mkDerivation rec {
|
||||
"-DPARAVIEW_INSTALL_DEVELOPMENT=ON"
|
||||
];
|
||||
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1138466
|
||||
NIX_CFLAGS_COMPILE = "-DGLX_GLXEXT_LEGACY";
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
buildInputs = [ cmake qt4 hdf5 mpich2 python libxml2 mesa libXt ];
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, cmake, mesa, libX11, xproto, libXt
|
||||
{ stdenv, fetchurl, fetchpatch, cmake, mesa, libX11, xproto, libXt
|
||||
, qtLib ? null }:
|
||||
|
||||
with stdenv.lib;
|
||||
@ -17,6 +17,9 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1fxxgsa7967gdphkl07lbfr6dcbq9a72z5kynlklxn7hyp0l18pi";
|
||||
};
|
||||
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1138466
|
||||
postPatch = "sed '/^#define GL_GLEXT_LEGACY/d' -i ./Rendering/vtkOpenGL.h";
|
||||
|
||||
buildInputs = [ cmake mesa libX11 xproto libXt ]
|
||||
++ optional (qtLib != null) qtLib;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user