From f8744b3f80ffe69f300cc675e09595185cec46ed Mon Sep 17 00:00:00 2001 From: Kirill Radzikhovskyy Date: Sat, 1 Apr 2023 19:03:45 +1100 Subject: [PATCH] bundix: fixup ruby_3_0 support --- .../ruby-modules/bundix/default.nix | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/pkgs/development/ruby-modules/bundix/default.nix b/pkgs/development/ruby-modules/bundix/default.nix index d4cfe217b83f..94c47f4e566d 100644 --- a/pkgs/development/ruby-modules/bundix/default.nix +++ b/pkgs/development/ruby-modules/bundix/default.nix @@ -1,5 +1,12 @@ -{ buildRubyGem, fetchFromGitHub, makeWrapper, lib, bundler, nix, - nix-prefetch-git }: +{ buildRubyGem +, fetchFromGitHub +, fetchpatch +, makeWrapper +, lib +, bundler +, nix +, nix-prefetch-git +}: buildRubyGem rec { inherit (bundler) ruby; @@ -15,6 +22,14 @@ buildRubyGem rec { sha256 = "sha256-iMp6Yj7TSWDqge3Lw855/igOWdTIuFH1LGeIN/cpq7U="; }; + patches = [ + # https://github.com/nix-community/bundix/pull/80 + (fetchpatch { + url = "https://github.com/nix-community/bundix/commit/3d7820efdd77281234182a9b813c2895ef49ae1f.patch"; + hash = "sha256-ShluCWfRQxR+vkXqa7Fh7+WHKf6vAsa9/DVeXjpAXLk="; + }) + ]; + buildInputs = [ ruby bundler ]; nativeBuildInputs = [ makeWrapper ];