From a1200481f28b4637f9a8738e1bfd9ebbba3d5bdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Pitucha?= Date: Sat, 20 May 2023 21:40:22 +1000 Subject: [PATCH] rubyPackages.ovirt-engine-sdk: fix build on ruby 3.1 and higher Include a patch merged but not released upstream. --- 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 5dba1c0cf099..4f70f9af751c 100644 --- a/pkgs/development/ruby-modules/gem-config/default.nix +++ b/pkgs/development/ruby-modules/gem-config/default.nix @@ -27,7 +27,7 @@ , bison, flex, pango, python3, patchelf, binutils, freetds, wrapGAppsHook, atk , bundler, libsass, libexif, libselinux, libsepol, shared-mime-info, libthai, libdatrie , CoreServices, DarwinTools, cctools, libtool, discount, exiv2, libmaxminddb, libyaml -, autoSignDarwinBinariesHook +, autoSignDarwinBinariesHook, fetchpatch }@args: let @@ -530,6 +530,15 @@ in ovirt-engine-sdk = attrs: { buildInputs = [ curl libxml2 ]; + dontBuild = false; + patches = [ + # fix ruby 3.1 https://github.com/oVirt/ovirt-engine-sdk-ruby/pull/3 + (fetchpatch { + url = "https://github.com/oVirt/ovirt-engine-sdk-ruby/pull/3/commits/b596b919bc7857fdc0fc1c61a8cb7eab32cfc2db.patch"; + hash = "sha256-AzGTQaD/e6X4LOMuXhy/WhbayhWKYCGHXPFlzLRWyPM="; + stripLen = 1; + }) + ]; }; pango = attrs: {