vtkWithQt5: drop

qbisi e746f80a 28890056

Changed files
+11 -28
pkgs
development
libraries
top-level
+7 -23
pkgs/development/libraries/vtk/generic.nix
···
libXcursor,
gl2ps,
libGL,
-
qt5,
qt6,
# custom options
-
qtVersion ? null,
+
withQt6 ? false,
# To avoid conflicts between the propagated vtkPackages.hdf5
# and the input hdf5 used by most downstream packages,
# we set mpiSupport to false by default.
···
testers,
}:
let
-
qtPackages =
-
if (isNull qtVersion) then
-
null
-
else if (qtVersion == "6") then
-
qt6
-
else if (qtVersion == "5") then
-
qt5
-
else
-
throw ''qtVersion must be "5", "6" or null'';
vtkPackages = lib.makeScope newScope (self: {
inherit
tbb
···
libXrender
libXcursor
]
-
++ lib.optional (!(isNull qtPackages)) qtPackages.qttools
+
++ lib.optional withQt6 qt6.qttools
++ lib.optional mpiSupport mpi
++ lib.optional pythonSupport tk;
···
})
];
-
# wrapper script calls qmlplugindump, crashes due to lack of minimal platform plugin
-
# Could not find the Qt platform plugin "minimal" in ""
-
preConfigure = lib.optionalString (qtVersion == "5") ''
-
export QT_PLUGIN_PATH=${lib.getBin qt5.qtbase}/${qt5.qtbase.qtPluginPrefix}
-
'';
-
env = {
CMAKE_PREFIX_PATH = "${lib.getDev openvdb}/lib/cmake/OpenVDB";
NIX_LDFLAGS = "-L${lib.getLib libmysqlclient}/lib/mariadb";
···
(vtkBool "VTK_MODULE_ENABLE_VTK_RenderingOpenVR" false) # openvr
(vtkBool "VTK_MODULE_ENABLE_VTK_RenderingAnari" false) # anari
-
# qtSupport
-
(vtkBool "VTK_GROUP_ENABLE_Qt" (!(isNull qtPackages)))
+
# withQt6
+
(vtkBool "VTK_GROUP_ENABLE_Qt" withQt6)
(lib.cmakeFeature "VTK_QT_VERSION" "Auto") # will search for Qt6 first
# pythonSupport
···
package = finalAttrs.finalPackage;
-
nativeBuildInputs = lib.optionals (!(isNull qtPackages)) [
-
qtPackages.qttools
-
qtPackages.wrapQtAppsHook
+
nativeBuildInputs = lib.optionals withQt6 [
+
qt6.qttools
+
qt6.wrapQtAppsHook
];
};
};
+2 -1
pkgs/top-level/aliases.nix
···
voxelands = throw "'voxelands' has been removed due to lack of upstream maintenance"; # Added 2025-08-30
vtk_9 = lib.warnOnInstantiate "'vtk_9' has been renamed to 'vtk_9_5'" vtk_9_5; # Added 2025-07-18
vtk_9_egl = lib.warnOnInstantiate "'vtk_9_5' now build with egl support by default, so `vtk_9_egl` is deprecated, consider using 'vtk_9_5' instead." vtk_9_5; # Added 2025-07-18
-
vtk_9_withQt5 = throw "'vtk_9_withQt5' has been removed, Consider using 'vtkWithQt5' instead."; # Added 2025-07-18
+
vtk_9_withQt5 = throw "'vtk_9_withQt5' has been removed, Consider using 'vtkWithQt6' instead."; # Added 2025-07-18
+
vtkWithQt5 = throw "'vtkWithQt5' has been removed. Consider using 'vtkWithQt6' instead."; # Added 2025-09-06
vuze = throw "'vuze' was removed because it is unmaintained upstream and insecure (CVE-2018-13417). BiglyBT is a maintained fork."; # Added 2024-11-22
vwm = throw "'vwm' was removed as it is broken and not maintained upstream"; # Added 2025-05-17
+2 -4
pkgs/top-level/all-packages.nix
···
vtk = vtk_9_5;
vtk-full = vtk.override {
-
qtVersion = "6";
+
withQt6 = true;
mpiSupport = true;
pythonSupport = true;
};
-
vtkWithQt5 = vtk.override { qtVersion = "5"; };
-
-
vtkWithQt6 = vtk.override { qtVersion = "6"; };
+
vtkWithQt6 = vtk.override { withQt6 = true; };
vulkan-caps-viewer = libsForQt5.callPackage ../tools/graphics/vulkan-caps-viewer { };