diff options
author | Ihar Hrachyshka | 2024-10-30 19:08:09 -0400 |
---|---|---|
committer | Bjørn Forsman | 2024-10-31 08:17:02 +0100 |
commit | 0232b1d3bae0f60b5aeed7c3ccbf25c0a7233486 (patch) | |
tree | 7e8862a3ee3cc4d3d223bc1cc38a8ad026bacace | |
parent | f395e453f00b968b26fb10e8a527563b49be0674 (diff) |
xidel: fix for darwin
On darwin, the tool was linked to system libcrypto.dylib and failed to start with: ``` Invalid dylib load. Clients should not load the unversioned libcrypto dylib as it does not have a stable ABI. abort() called ```
-rw-r--r-- | pkgs/tools/text/xidel/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/tools/text/xidel/default.nix b/pkgs/tools/text/xidel/default.nix index 6a55a5d9e8b1..6119151e5294 100644 --- a/pkgs/tools/text/xidel/default.nix +++ b/pkgs/tools/text/xidel/default.nix @@ -62,10 +62,14 @@ in stdenv.mkDerivation rec { preBuildPhase = '' mkdir -p import/{flre,synapse,pasdblstrutils} rcmdline internettools cp -R ${flreSrc}/. import/flre - cp -R ${synapseSrc}/. import/synapse cp -R ${pasdblstrutilsSrc}/. import/pasdblstrutils cp -R ${rcmdlineSrc}/. rcmdline cp -R ${internettoolsSrc}/. internettools + + cp -R ${synapseSrc}/. import/synapse + substituteInPlace import/synapse/ssl_openssl{,11}_lib.pas \ + --replace-fail 'libcrypto.dylib' '${lib.getLib openssl}/lib/libcrypto.dylib' \ + --replace-fail 'libssl.dylib' '${lib.getLib openssl}/lib/libssl.dylib' ''; buildPhase = '' |