10 package_version = "v${lib.versions.major version}";
11 gitaly_package = "gitlab.com/gitlab-org/gitaly/${package_version}";
13 git = callPackage ./git.nix { };
18 # nixpkgs-update: no auto update
19 src = fetchFromGitLab {
23 hash = "sha256-UgNQtM3NdAUJVP+vvTHtZWSjCmVzsHlEtXQroxKorIY=";
26 vendorHash = "sha256-FqnGVRldhevJgBBvJcvGXzRaYWqSHzZiXIQmCNzJv+4=";
28 ldflags = [ "-X ${gitaly_package}/internal/version.version=${version}" "-X ${gitaly_package}/internal/version.moduleVersion=${version}" ];
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
58 homepage = "https://gitlab.com/gitlab-org/gitaly";
59 description = "Git RPC service for handling all the git calls made by GitLab";
60 platforms = platforms.linux ++ [ "x86_64-darwin" ];
61 maintainers = teams.gitlab.members;
62 license = licenses.mit;