timescaledb: use replace-fail instead of replace for substituteInPlace

To avoid the deprecation warning.
This commit is contained in:
Wolfgang Walther 2024-09-12 19:12:46 +02:00
parent 1eb2a0e2d5
commit eb709dd183
No known key found for this signature in database
GPG Key ID: B39893FA5F65CAE1

View File

@ -23,12 +23,12 @@ stdenv.mkDerivation rec {
postPatch = ''
for x in CMakeLists.txt sql/CMakeLists.txt; do
substituteInPlace "$x" \
--replace 'DESTINATION "''${PG_SHAREDIR}/extension"' "DESTINATION \"$out/share/postgresql/extension\""
--replace-fail 'DESTINATION "''${PG_SHAREDIR}/extension"' "DESTINATION \"$out/share/postgresql/extension\""
done
for x in src/CMakeLists.txt src/loader/CMakeLists.txt tsl/src/CMakeLists.txt; do
substituteInPlace "$x" \
--replace 'DESTINATION ''${PG_PKGLIBDIR}' "DESTINATION \"$out/lib\""
--replace-fail 'DESTINATION ''${PG_PKGLIBDIR}' "DESTINATION \"$out/lib\""
done
'';