Merge fort-nix/nix-bitcoin#703: treewide: use substituteInPlace --replace-fail

44addcb5aa treewide: use `substituteInPlace --replace-fail` (Erik Arvstedt)

Pull request description:

ACKs for top commit:
  jonasnick:
    ACK 44addcb5aa

Tree-SHA512: ef5677ed38f253c3db88f149d2bf996773d81fedb1592a878060ee5384fe332efda907e710737053201e60d7151161379b9b974f57b6d51237f648e95b061381
This commit is contained in:
Jonas Nick 2024-05-24 16:19:36 +00:00
commit 84b8b1ffe9
No known key found for this signature in database
GPG Key ID: 4861DBF262123605
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
'';

View File

@ -271,7 +271,7 @@ let
clightning = super.clightning.overrideAttrs (old: {
postPatch = old.postPatch + ''
substituteInPlace lightningd/plugin.c \
--replace "#define PLUGIN_MANIFEST_TIMEOUT 60" "#define PLUGIN_MANIFEST_TIMEOUT 200"
--replace-fail "#define PLUGIN_MANIFEST_TIMEOUT 60" "#define PLUGIN_MANIFEST_TIMEOUT 200"
'';
});
};