treewide: use substituteInPlace --replace-fail

Now substitution failures result in a script error.
This has recently been backported to nixpkgs 23.11.
This commit is contained in:
Erik Arvstedt 2024-05-21 12:41:15 +02:00
parent aab479fc9d
commit 44addcb5aa
No known key found for this signature in database
GPG key ID: 33312B944DD97846
2 changed files with 2 additions and 2 deletions

View file

@ -14,7 +14,7 @@ buildPythonPackageWithDepsCheck rec {
patchPhase = ''
for path in core/secp256k1.py tests/test_load_secp256k1.py; do
substituteInPlace "bitcointx/$path" \
--replace "ctypes.util.find_library('secp256k1')" "'${secp256k1}/lib/libsecp256k1.so'"
--replace-fail "ctypes.util.find_library('secp256k1')" "'${secp256k1}/lib/libsecp256k1.so'"
done
'';