pdi: fix HDF5 version detection

Allow for 3 and 4 digit version string. HDF5 likes to skip between them.
This commit is contained in:
Markus Kowalewski
2024-10-07 15:38:08 +02:00
parent 16478834f4
commit bc23fc41e4
+1 -1
View File
@@ -45,7 +45,7 @@ stdenv.mkDerivation rec {
# Patch it to make it match a 4 number-long version.
postPatch = ''
substituteInPlace plugins/decl_hdf5/cmake/FindHDF5.cmake \
--replace-fail '"H5_VERSION[ \t]+\"([0-9]+\\.[0-9]+\\.[0-9]+)' '"H5_VERSION[ \t]+\"([0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+)'
--replace-fail '"H5_VERSION[ \t]+\"([0-9]+\\.[0-9]+\\.[0-9]+)' '"H5_VERSION[ \t]+\"([0-9]+\\.[0-9]+\\.[0-9]+(\\.[0-9]+)*)'
'';
nativeBuildInputs = [