otb: 10.0-unstable-2025-02-13 -> 10.0-unstable-2025-04-03 (#396302)

Changed files
+17 -10
pkgs
by-name
ot
+17 -10
pkgs/by-name/ot/otb/package.nix
···
tinyxml,
# otb modules
+
enableFFTW ? false,
enableFeatureExtraction ? true,
enableHyperspectral ? true,
enableLearning ? true,
···
# filter out gdcm, libminc from list of ITK deps as it's not needed for OTB
itkVersion = "5.3.0";
itkMajorMinorVersion = lib.versions.majorMinor itkVersion;
-
itkDepsToRemove = [
-
"gdcm"
-
"libminc"
-
];
+
itkDepsToRemove =
+
[
+
"gdcm"
+
"libminc"
+
]
+
++ optionals (!enableFFTW) [
+
# remove fftw to avoid GPL contamination
+
# https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/-/issues/2454#note_112821
+
"fftw"
+
];
itkIsInDepsToRemove = dep: builtins.any (d: d == dep.name) itkDepsToRemove;
# remove after https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/-/issues/2451
···
propagatedBuildInputs =
lib.lists.filter (pkg: !(itkIsInDepsToRemove pkg)) oldArgs.propagatedBuildInputs or [ ]
-
++ [
-
# the only missing dependency for OTB from itk propagated list
+
++ lib.optionals enableFFTW [
+
# the only missing dependency for OTB from itk propagated list if FFTW option is enabled
fftwFloat
];
···
in
stdenv.mkDerivation (finalAttrs: {
pname = "otb";
-
version = "10.0-unstable-2025-02-13";
+
version = "10.0-unstable-2025-04-03";
src = fetchFromGitHub {
owner = "orfeotoolbox";
repo = "otb";
-
rev = "34c96ef53bb94985a1358d5c3de1a5ac6dfecf18";
-
hash = "sha256-QCLuUryVi+r8sQGxvrh9G91uLxuRju6l3LxVJO3VzXM=";
+
rev = "93649b68f54975a1a48a0acd49f2602a55fc8032";
+
hash = "sha256-S6yhV//qlKdWWcT9J1p64WuVS0QNepIYTr/t4JvyEwE=";
};
patches = [
···
(lib.cmakeBool "OTBGroup_ThirdParty" enableThirdParty)
(lib.cmakeBool "OTB_WRAP_PYTHON" enablePython)
(lib.cmakeBool "BUILD_TESTING" finalAttrs.doInstallCheck)
+
(lib.cmakeBool "OTB_USE_FFTW" enableFFTW)
];
propagatedBuildInputs =
···
muparserx
opencv
otb-itk
-
otb-shark
perl
tinyxml
]