From e9203772f2e19e9abad52297d5a6cd3aaa1c89b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20G=C3=BCntner?= Date: Fri, 1 Sep 2017 14:43:27 +0200 Subject: [PATCH] pybitmessage: replace find_library() calls with paths fixes requested changes in #26616 --- .../instant-messengers/pybitmessage/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/pybitmessage/default.nix b/pkgs/applications/networking/instant-messengers/pybitmessage/default.nix index 582ff687d59..78f0a9c31fc 100644 --- a/pkgs/applications/networking/instant-messengers/pybitmessage/default.nix +++ b/pkgs/applications/networking/instant-messengers/pybitmessage/default.nix @@ -21,10 +21,12 @@ pythonPackages.buildPythonApplication rec { --replace 'print "It looks like building the package failed.\n" \' pass \ --replace ' "You may be missing a C++ compiler and the OpenSSL headers."' pass - ''; + substituteInPlace src/pyelliptic/openssl.py \ + --replace "libdir.append(find_library('ssl'))" "libdir.append('${openssl.out}/lib/libssl.so')" + + substituteInPlace src/depends.py \ + --replace "ctypes.util.find_library('ssl')" "'${openssl.out}/lib/libssl.so'" - makeWrapperArgs = '' - --prefix LD_LIBRARY_PATH : "${openssl.out}/lib/" ''; meta = with stdenv.lib; {