33 lines
917 B
Nix
33 lines
917 B
Nix
{
|
|
callPackage,
|
|
fetchpatch,
|
|
}:
|
|
let
|
|
mkVtk = initArgs: callPackage (import ./generic.nix initArgs) { };
|
|
in
|
|
{
|
|
vtk_9_5 = mkVtk {
|
|
version = "9.5.2";
|
|
sourceSha256 = "sha256-zuZLmNJw/3MC2vHvE0WN/11awey0XUdyODX399ViyYk=";
|
|
patches = [
|
|
(fetchpatch {
|
|
name = "fix-gdal-3.13-const-conversion.patch";
|
|
url = "https://github.com/Kitware/VTK/commit/2395603fdddc40c29efc64c632ae98225ca2a58e.patch";
|
|
hash = "sha256-Gcnt1JXWPkhfNLhtk9SXYqx/0cLkjO4xiRfR8YiaY8I=";
|
|
})
|
|
];
|
|
};
|
|
|
|
vtk_9_6 = mkVtk {
|
|
version = "9.6.2";
|
|
sourceSha256 = "sha256-rtEs7BKpYJF5v2YykHAmZifKZCRKEIVqRSsqF/+wSh0=";
|
|
patches = [
|
|
(fetchpatch {
|
|
name = "fix-gdal-3.13-const-conversion.patch";
|
|
url = "https://github.com/Kitware/VTK/commit/2395603fdddc40c29efc64c632ae98225ca2a58e.patch";
|
|
hash = "sha256-Gcnt1JXWPkhfNLhtk9SXYqx/0cLkjO4xiRfR8YiaY8I=";
|
|
})
|
|
];
|
|
};
|
|
}
|