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.
This commit is contained in:
parent
d984875aff
commit
50a4de7326
|
@ -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…
Reference in New Issue