Browse Source

nixos/gitlab: Install and fixup vendorised gitlab-shell

gitaly now ships its own vendorised version of gitlab-shell. Previously
we failed to install this, resulting in
https://gitlab.com/gitlab-org/gitlab-ce/issues/59403.
nim-0.20.0
Ben Gamari 3 years ago
parent
commit
50a4de7326
  1. 9
      pkgs/applications/version-management/gitlab/gitaly/default.nix

9
pkgs/applications/version-management/gitlab/gitaly/default.nix

@ -27,7 +27,14 @@ in buildGoPackage rec {
postInstall = ''
mkdir -p $ruby
cp -rv $src/ruby/{bin,lib} $ruby
cp -rv $src/ruby/{bin,lib,git-hooks,vendor} $ruby
# gitlab-shell will try to read its config relative to the source
# code by default which doesn't work in nixos because it's a
# read-only filesystem
substituteInPlace $ruby/vendor/gitlab-shell/lib/gitlab_config.rb --replace \
"File.join(ROOT_PATH, 'config.yml')" \
"'/run/gitlab/shell-config.yml'"
'';
outputs = [ "bin" "out" "ruby" ];

Loading…
Cancel
Save