From d0af7c06ac557e3bd12bc9b73ea8ed68f65b1da2 Mon Sep 17 00:00:00 2001 From: Benno Bielmeier Date: Fri, 17 Jun 2022 13:43:03 +0200 Subject: [PATCH] gollum: fix shebang in bin/gollum In the v5.3.0 release of gollum, the shebang in `bin/gollum` changed, breaking the package build: https://github.com/gollum/gollum/compare/v5.2.3..v5.3.0#diff-0108eafd2bcdf5151e078efec0119e63431569fca19b46660c9b8d9b7cdd6cf5R1 --- pkgs/development/ruby-modules/gem-config/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/ruby-modules/gem-config/default.nix b/pkgs/development/ruby-modules/gem-config/default.nix index 47e70aaa8f0e..6f9da13f5034 100644 --- a/pkgs/development/ruby-modules/gem-config/default.nix +++ b/pkgs/development/ruby-modules/gem-config/default.nix @@ -294,6 +294,14 @@ in propagatedBuildInputs = [ gobject-introspection wrapGAppsHook glib ]; }; + gollum = attrs: { + dontBuild = false; + postPatch = '' + substituteInPlace bin/gollum \ + --replace "/usr/bin/env -S ruby" "${ruby}/bin/ruby" + ''; + }; + grpc = attrs: { nativeBuildInputs = [ pkg-config ] ++ lib.optional stdenv.isDarwin libtool; buildInputs = [ openssl ];