pdi: fix HDF5 version detection
Allow for 3 and 4 digit version string. HDF5 likes to skip between them.
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user