From af44cf8bc53901608c51c98c235bc42080627e32 Mon Sep 17 00:00:00 2001 From: Michael Fellinger Date: Sun, 7 Apr 2019 15:09:15 +0200 Subject: [PATCH] gem-config: add opus-ruby (#59084) --- pkgs/development/ruby-modules/gem-config/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 ]; };