gem-config: add ethon

The Ethon gem uses libcurl.so at runtime via FFI, so we need to specify the correct location.
This commit is contained in:
Michael Fellinger 2018-02-19 22:56:17 +01:00 committed by GitHub
parent 7cb7d2a4dc
commit 895b1cb1b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,6 +88,14 @@ in
'';
};
ethon = attrs: {
dontBuild = false;
postPatch = ''
substituteInPlace lib/ethon/curls/settings.rb \
--replace "libcurl" "${curl.out}/lib/libcurl.so"
'';
};
eventmachine = attrs: {
buildInputs = [ openssl ];
};