summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenno Bielmeier <nix@bbenno.com>2022-06-17 13:43:03 +0200
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2022-06-17 19:14:44 +0000
commit8926e9d73e02f1f91d688252623576d676434633 (patch)
tree9a13e6652fe49d8a468f0dae39cf020dc651addd
parentnixos/gollum: add option local-time (diff)
downloadnixpkgs-origin/backport-178009-to-release-22.05.tar.gz
gollum: fix shebang in bin/gollumorigin/backport-178009-to-release-22.05
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 (cherry picked from commit d0af7c06ac557e3bd12bc9b73ea8ed68f65b1da2)
-rw-r--r--pkgs/development/ruby-modules/gem-config/default.nix8
1 files changed, 8 insertions, 0 deletions
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 ];