Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / version-management / git-credential-oauth / default.nix
blob9b46a0c501b17699fa6aaf4c88ddbc878d17b3e6
1 { lib, buildGoModule, fetchFromGitHub }:
3 buildGoModule rec {
4   pname = "git-credential-oauth";
5   version = "0.11.0";
7   src = fetchFromGitHub {
8     owner = "hickford";
9     repo = pname;
10     rev = "v${version}";
11     hash = "sha256-Zxdd4JhSoaAFx8neZqdOZSZEOTtupZHnX+5ziYxbw6s=";
12   };
14   ldflags = [
15     "-s"
16     "-w"
17     "-X main.version=${version}"
18   ];
20   vendorHash = "sha256-cCqbEv4kBnF6FWvfaXCOxadPVXR/AxXS3nXHf6WmsSs=";
22   meta = {
23     description = "Git credential helper that securely authenticates to GitHub, GitLab and BitBucket using OAuth";
24     homepage = "https://github.com/hickford/git-credential-oauth";
25     changelog = "https://github.com/hickford/git-credential-oauth/releases/tag/${src.rev}";
26     license = lib.licenses.asl20;
27     maintainers = with lib.maintainers; [ shyim ];
28   };