mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-11-22 13:14:15 +03:00
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:
parent
aab479fc9d
commit
44addcb5aa
@ -14,7 +14,7 @@ buildPythonPackageWithDepsCheck rec {
|
|||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
for path in core/secp256k1.py tests/test_load_secp256k1.py; do
|
for path in core/secp256k1.py tests/test_load_secp256k1.py; do
|
||||||
substituteInPlace "bitcointx/$path" \
|
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
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -271,7 +271,7 @@ let
|
|||||||
clightning = super.clightning.overrideAttrs (old: {
|
clightning = super.clightning.overrideAttrs (old: {
|
||||||
postPatch = old.postPatch + ''
|
postPatch = old.postPatch + ''
|
||||||
substituteInPlace lightningd/plugin.c \
|
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"
|
||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user