9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
29 lines
802 B
Nix
29 lines
802 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "git-credential-oauth";
|
|
version = "0.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hickford";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-t1P20BDNQ0aJRgQhOgYP2Md44+I8xs6884ktBO4nGjY=";
|
|
};
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X main.version=${version}"
|
|
];
|
|
|
|
vendorHash = "sha256-oHusgU5SMkFDY2dhFRdDonyYkyOBGOp+zqx2nFmOWXk=";
|
|
|
|
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 ];
|
|
};
|
|
}
|