gem-config: add opus-ruby (#59084)

This commit is contained in:
Michael Fellinger 2019-04-07 15:09:15 +02:00 committed by zimbatm
parent 10a1c39a89
commit af44cf8bc5

View file

@ -23,7 +23,7 @@
, cmake, libssh2, openssl, mysql, darwin, git, perl, pcre, gecode_3, curl
, msgpack, qt59, libsodium, snappy, libossp_uuid, lxc, libpcap, xorg, gtk2, buildRubyGem
, cairo, re2, rake, gobject-introspection, gdk_pixbuf, zeromq, czmq, graphicsmagick, libcxx
, file, libvirt, glib, vips, taglib
, file, libvirt, glib, vips, taglib, libopus
, libselinux ? null, libsepol ? null
}@args:
@ -275,6 +275,15 @@ in
] ++ lib.optional stdenv.isDarwin "--with-iconv-dir=${libiconv}";
};
opus-ruby = attrs: {
dontBuild = false;
postPatch = ''
substituteInPlace lib/opus-ruby.rb \
--replace "ffi_lib 'opus'" \
"ffi_lib '${libopus}/lib/libopus${stdenv.hostPlatform.extensions.sharedLibrary}'"
'';
};
ovirt-engine-sdk = attrs: {
buildInputs = [ curl libxml2 ];
};