Conversation
|
|
|
Ready to go on Linux (Darwin may be another story). |
It should be fixed by the latest commit which adds |
|
|
|
So, the error on Darwin comes from the vendored copy of |
|
generated binary vtkProbeOpenGLVersion in vtk 9.4.2 will fail to find libGL.so unless export LD_LIBRARY_PATH=${lib.getLib ligGL}/lib |
|
This patch will work diff --git a/pkgs/development/libraries/vtk/generic.nix b/pkgs/development/libraries/vtk/generic.nix
index 60b7ae238b83..c9a8f7911a2a 100644
--- a/pkgs/development/libraries/vtk/generic.nix
+++ b/pkgs/development/libraries/vtk/generic.nix
@@ -135,6 +135,10 @@ stdenv.mkDerivation {
--subst-var-by VTK_VER "${version}"
'';
+ postFixup = optionalString stdenv.hostPlatform.isLinux ''
+ patchelf --add-rpath ${lib.getLib libGL}/lib $out/lib/libvtkglad.so
+ '';
+
meta = with lib; {
description = "Open source libraries for 3D computer graphics, image processing and visualization";
homepage = "https://www.vtk.org/"; |
|
Superseded by #417613. |
A previous attempt at upgrading to VTK 9.3.x (#354855) seems stalled, so we may as well try updating to latest and pinning breaking packages to the previous nixpkgs version (9.2.6). Also replaces #370734 which is also stalled (and does not pin 9.2.6).
Notepython3Packages.vtkis unfortunately one of the pinned packages due to e.g.pyvistaalthough I did not try very hard to lift this.@MatthewCroughan @wegank @emilazy
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.