Robin Gloster
2020-06-04 14:32:39 +02:00
committed by talyz
parent 3327b9a385
commit 79454f15ac
14 changed files with 781 additions and 481 deletions
@@ -19,14 +19,14 @@ let
};
};
in buildGoPackage rec {
version = "12.10.8";
version = "13.0.3";
pname = "gitaly";
src = fetchFromGitLab {
owner = "gitlab-org";
repo = "gitaly";
rev = "v${version}";
sha256 = "02dih35j97q80kzi46pkf9f9r1sffw11i5zmpjs2rr96al426g8q";
sha256 = "0dvgi1pgn3pv7d6fkfmrp5y61inv9zgrw0224v44w00wm7sv9xi1";
};
# Fix a check which assumes that hook files are writeable by their
@@ -49,13 +49,6 @@ in buildGoPackage rec {
postInstall = ''
mkdir -p $ruby
cp -rv $src/ruby/{bin,lib,proto,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/gitlab-shell/lib/gitlab_config.rb --replace \
"ROOT_PATH.join('config.yml')" \
"Pathname.new('/run/gitlab/shell-config.yml')"
'';
outputs = [ "out" "ruby" ];