diff --git a/pkgs/development/ruby-modules/gem-config/default.nix b/pkgs/development/ruby-modules/gem-config/default.nix index 7b7dab1481e7..7dc0b7b88e97 100644 --- a/pkgs/development/ruby-modules/gem-config/default.nix +++ b/pkgs/development/ruby-modules/gem-config/default.nix @@ -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 ]; };