Commit 0232b1d3 authored by Ihar Hrachyshka's avatar Ihar Hrachyshka Committed by Bjørn Forsman
Browse files

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
```
parent f395e453
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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 = ''