nixpkgs/pkgs/applications/version-management/git-credential-oauth/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
802 B
Nix
Raw Normal View History

2023-06-01 21:17:38 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "git-credential-oauth";
2023-06-09 17:57:42 +00:00
version = "0.8.0";
2023-06-01 21:17:38 +00:00
src = fetchFromGitHub {
owner = "hickford";
repo = pname;
rev = "v${version}";
2023-06-09 17:57:42 +00:00
hash = "sha256-t1P20BDNQ0aJRgQhOgYP2Md44+I8xs6884ktBO4nGjY=";
2023-06-01 21:17:38 +00:00
};
ldflags = [
"-s"
"-w"
"-X main.version=${version}"
];
2023-06-09 17:57:42 +00:00
vendorHash = "sha256-oHusgU5SMkFDY2dhFRdDonyYkyOBGOp+zqx2nFmOWXk=";
2023-06-01 21:17:38 +00:00
meta = {
description = "Git credential helper that securely authenticates to GitHub, GitLab and BitBucket using OAuth";
homepage = "https://github.com/hickford/git-credential-oauth";
changelog = "https://github.com/hickford/git-credential-oauth/releases/tag/${src.rev}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ shyim ];
};
}