2023-07-15 17:15:38 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "git-credential-oauth";
|
2023-10-19 13:55:26 +00:00
|
|
|
version = "0.11.0";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hickford";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-10-19 13:55:26 +00:00
|
|
|
hash = "sha256-Zxdd4JhSoaAFx8neZqdOZSZEOTtupZHnX+5ziYxbw6s=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X main.version=${version}"
|
|
|
|
];
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
vendorHash = "sha256-cCqbEv4kBnF6FWvfaXCOxadPVXR/AxXS3nXHf6WmsSs=";
|
2023-07-15 17:15: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 ];
|
|
|
|
};
|
|
|
|
}
|