pybitmessage: replace find_library() calls with paths

fixes requested changes in #26616
This commit is contained in:
Maximilian Güntner 2017-09-01 14:43:27 +02:00
parent e3d7c4ca19
commit e9203772f2
No known key found for this signature in database
GPG Key ID: 5D667E0FD0397CFF

View File

@ -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; {