Merge pull request #224187 from kirillrdy/bundix

bundix: fixup ruby_3_0 support
This commit is contained in:
Mario Rodas 2023-04-01 08:02:57 -05:00 committed by GitHub
commit ec8d18f340
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 ];