Merge pull request #58545 from bgamari/gitaly-fixup-gitlab-shell
nixos/gitlab: Install and fixup vendorised gitlab-shell
This commit is contained in:
commit
ef047e711c
@ -27,7 +27,14 @@ in buildGoPackage rec {
|
|||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p $ruby
|
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" ];
|
outputs = [ "bin" "out" "ruby" ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user