biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / version-management / git-credential-oauth / default.nix
blobc818874392af46db5236ee40e061ad035ed68333
1 { lib, buildGoModule, fetchFromGitHub, installShellFiles }:
3 buildGoModule rec {
4   pname = "git-credential-oauth";
5   version = "0.11.1";
7   src = fetchFromGitHub {
8     owner = "hickford";
9     repo = pname;
10     rev = "v${version}";
11     hash = "sha256-bqyoAAqli0L6Kf+W1sTh2vmmfaIj2OdpQyvQZnYOWWA=";
12   };
14   nativeBuildInputs = [ installShellFiles ];
16   ldflags = [
17     "-s"
18     "-w"
19     "-X main.version=${version}"
20   ];
22   vendorHash = "sha256-cCqbEv4kBnF6FWvfaXCOxadPVXR/AxXS3nXHf6WmsSs=";
24   postInstall = ''
25     installManPage $src/git-credential-oauth.1
26   '';
28   meta = {
29     description = "Git credential helper that securely authenticates to GitHub, GitLab and BitBucket using OAuth";
30     homepage = "https://github.com/hickford/git-credential-oauth";
31     changelog = "https://github.com/hickford/git-credential-oauth/releases/tag/${src.rev}";
32     license = lib.licenses.asl20;
33     maintainers = with lib.maintainers; [ shyim ];
34     mainProgram = "git-credential-oauth";
35   };