diff --git a/pkgs/applications/networking/instant-messengers/pybitmessage/default.nix b/pkgs/applications/networking/instant-messengers/pybitmessage/default.nix index 582ff687d59b..78f0a9c31fc8 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; {