paraview, vtk: fix build after mesa update

wip/yesman
Vladimír Čunát 9 years ago
parent 0ce3dcd91a
commit 33153a2166
  1. 3
      pkgs/applications/graphics/paraview/default.nix
  2. 5
      pkgs/development/libraries/vtk/default.nix

@ -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…
Cancel
Save