nixpkgs/pkgs/applications/version-management/git-codereview/default.nix
2024-04-29 11:25:38 +00:00

28 lines
650 B
Nix

{ lib, buildGoModule, fetchFromGitHub, git }:
buildGoModule rec {
pname = "git-codereview";
version = "1.11.0";
src = fetchFromGitHub {
owner = "golang";
repo = "review";
rev = "v${version}";
hash = "sha256-fIvNaMfgwnMBUNo6kr37zhKiBgKNzT2E0dLLtqaVBvI=";
};
vendorHash = null;
ldflags = [ "-s" "-w" ];
nativeCheckInputs = [ git ];
meta = with lib; {
description = "Manage the code review process for Git changes using a Gerrit server";
homepage = "https://golang.org/x/review/git-codereview";
license = licenses.bsd3;
maintainers = [ maintainers.edef ];
mainProgram = "git-codereview";
};
}