mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 03:43:06 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
36 lines
1.0 KiB
Nix
36 lines
1.0 KiB
Nix
{ buildGoModule
|
|
, fetchFromGitHub
|
|
, lib
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "oauth2c";
|
|
version = "1.13.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cloudentity";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-NNVHEV8qnPv+xXFzPsh1V+fSOQZxpADCRPIUsak5M5M=";
|
|
};
|
|
|
|
vendorHash = "sha256-x6cb19rKJXm+EIxJeykhpFmUYOPb/VljzCOVjorP5MQ=";
|
|
|
|
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";
|
|
mainProgram = "oauth2c";
|
|
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;
|
|
};
|
|
}
|