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

@ -87,6 +87,14 @@ in
sed -i $installPath/lib/dep-selector-libgecode.rb -e 's@VENDORED_GECODE_DIR =.*@VENDORED_GECODE_DIR = "${gecode_3}"@'
'';
};
ethon = attrs: {
dontBuild = false;
postPatch = ''
substituteInPlace lib/ethon/curls/settings.rb \
--replace "libcurl" "${curl.out}/lib/libcurl.so"
'';
};
eventmachine = attrs: {
buildInputs = [ openssl ];