Skip to content

Commit

Permalink
nixos/gitlab: Install and fixup vendorised gitlab-shell
Browse files Browse the repository at this point in the history
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.

(cherry picked from commit 50a4de7)
  • Loading branch information
bgamari authored and flokli committed Mar 29, 2019
1 parent 1bcd04f commit 2f2cb4e
Showing 1 changed file with 8 additions and 1 deletion.
Expand Up @@ -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" ];
Expand Down

0 comments on commit 2f2cb4e

Please sign in to comment.