10 package_version = "v${lib.versions.major version}";
11 gitaly_package = "gitlab.com/gitlab-org/gitaly/${package_version}";
16 # nixpkgs-update: no auto update
17 src = fetchFromGitLab {
21 hash = "sha256-WdEYZL3g/aYh2Iy1ZgJhIHgQ4967FOxhiuQEokk1S2A=";
24 vendorHash = "sha256-zaldiRg7fk/HncpfR7k+dDprsOp1ziQHgX8B4l7bwe0=";
26 ldflags = [ "-X ${gitaly_package}/internal/version.version=${version}" "-X ${gitaly_package}/internal/version.moduleVersion=${version}" ];
30 nativeBuildInputs = [ pkg-config ];
35 auxBins = buildGoModule ({
38 subPackages = [ "cmd/gitaly-hooks" "cmd/gitaly-ssh" "cmd/gitaly-lfs-smudge" "cmd/gitaly-gpg" ];
44 subPackages = [ "cmd/gitaly" "cmd/gitaly-backup" ];
48 cp -r ${auxBins}/bin/* _build/bin
54 homepage = "https://gitlab.com/gitlab-org/gitaly";
55 description = "A Git RPC service for handling all the git calls made by GitLab";
56 platforms = platforms.linux ++ [ "x86_64-darwin" ];
57 maintainers = teams.gitlab.members;
58 license = licenses.mit;