gitaly: fix build

This commit is contained in:
Robin Gloster 2019-05-06 19:11:11 +02:00
parent d237c8a182
commit 2ec5786a4d
No known key found for this signature in database
GPG Key ID: D5C458DF6DD97EDF

View File

@ -27,12 +27,12 @@ in buildGoPackage rec {
postInstall = ''
mkdir -p $ruby
cp -rv $src/ruby/{bin,lib,git-hooks,vendor} $ruby
cp -rv $src/ruby/{bin,lib,git-hooks,gitlab-shell} $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 \
substituteInPlace $ruby/gitlab-shell/lib/gitlab_config.rb --replace \
"File.join(ROOT_PATH, 'config.yml')" \
"'/run/gitlab/shell-config.yml'"
'';