aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/applications/version-management/gitlab/gitaly/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/applications/version-management/gitlab/gitaly/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/applications/version-management/gitlab/gitaly/default.nix28
1 files changed, 12 insertions, 16 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/applications/version-management/gitlab/gitaly/default.nix b/infra/libkookie/nixpkgs/pkgs/applications/version-management/gitlab/gitaly/default.nix
index 84cf1e500a22..57465f808df5 100644
--- a/infra/libkookie/nixpkgs/pkgs/applications/version-management/gitlab/gitaly/default.nix
+++ b/infra/libkookie/nixpkgs/pkgs/applications/version-management/gitlab/gitaly/default.nix
@@ -1,5 +1,7 @@
-{ stdenv, fetchFromGitLab, fetchFromGitHub, buildGoPackage, ruby,
- bundlerEnv, pkgconfig, libgit2_0_27 }:
+{ stdenv, fetchFromGitLab, fetchFromGitHub, buildGoModule, ruby
+, bundlerEnv, pkgconfig
+# libgit2 + dependencies
+, libgit2, openssl, zlib, pcre, http-parser }:
let
rubyEnv = bundlerEnv rec {
@@ -18,37 +20,31 @@ let
};
};
};
-in buildGoPackage rec {
- version = "13.0.14";
+in buildGoModule rec {
+ version = "13.6.1";
pname = "gitaly";
src = fetchFromGitLab {
owner = "gitlab-org";
repo = "gitaly";
rev = "v${version}";
- sha256 = "16ynkwiv0faa60msashj5w1bc4rdh7yv2qjmpcbf7dwq54gqmlbv";
+ sha256 = "02w7pf7l9sr2nk8ky9b0d5b4syx3d9my65h2kzvh2afk7kv35h5y";
};
- # Fix a check which assumes that hook files are writeable by their
- # owner.
- patches = [
- ./fix-executable-check.patch
- ];
-
- goPackagePath = "gitlab.com/gitlab-org/gitaly";
+ vendorSha256 = "15mx5g2wa93sajbdwh58wcspg0n51d1ciwb7f15d0nm5hspz3w9r";
passthru = {
inherit rubyEnv;
};
+ buildFlags = [ "-tags=static,system_libgit2" ];
nativeBuildInputs = [ pkgconfig ];
- buildInputs = [ rubyEnv.wrappedRuby libgit2_0_27 ];
- goDeps = ./deps.nix;
- preBuild = "rm -r go/src/gitlab.com/gitlab-org/labkit/vendor";
+ buildInputs = [ rubyEnv.wrappedRuby libgit2 openssl zlib pcre http-parser ];
+ doCheck = false;
postInstall = ''
mkdir -p $ruby
- cp -rv $src/ruby/{bin,lib,proto,git-hooks,gitlab-shell} $ruby
+ cp -rv $src/ruby/{bin,lib,proto,git-hooks} $ruby
'';
outputs = [ "out" "ruby" ];