depot/third_party/nixpkgs/pkgs/tools/security/oauth2c/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

34 lines
1,021 B
Nix

{ buildGoModule
, fetchFromGitHub
, lib
}:
buildGoModule rec {
pname = "oauth2c";
version = "1.7.0";
src = fetchFromGitHub {
owner = "cloudentity";
repo = pname;
rev = "v${version}";
hash = "sha256-IOfY0lKOeuArO3bI1JjTOXHhCqr3GTfsOHCOI0Qh4xk=";
};
vendorHash = "sha256-euEmslrSbXPVDNZkIguq+ukt74Um4H0+lIXEyCBorjE=";
doCheck = false; # tests want to talk to oauth2c.us.authz.cloudentity.io
meta = with lib; {
homepage = "https://github.com/cloudentity/oauth2c";
description = "User-friendly OAuth2 CLI";
longDescription = ''
oauth2c is a command-line tool for interacting with OAuth 2.0
authorization servers. Its goal is to make it easy to fetch access tokens
using any grant type or client authentication method. It is compliant with
almost all basic and advanced OAuth 2.0, OIDC, OIDF FAPI and JWT profiles.
'';
license = licenses.asl20;
maintainers = [ maintainers.flokli ];
platforms = platforms.darwin ++ platforms.linux;
};
}