Merge pull request #58545 from bgamari/gitaly-fixup-gitlab-shell

nixos/gitlab: Install and fixup vendorised gitlab-shell
This commit is contained in:
Florian Klink 2019-03-29 23:41:02 +01:00 committed by GitHub
commit ef047e711c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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