2021-08-23 06:46:32 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "vouch-proxy";
|
2021-12-22 01:31:36 +00:00
|
|
|
version = "0.36.0";
|
2021-08-23 06:46:32 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vouch";
|
|
|
|
repo = "vouch-proxy";
|
|
|
|
rev = "v${version}";
|
2021-12-22 01:31:36 +00:00
|
|
|
sha256 = "sha256-pgoxRzYc5PIrxnRwWpthFmpsxDfvWTmLT7upQVIFoQo=";
|
2021-08-23 06:46:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
vendorSha256 = "sha256-ifH+420FIrib+zQtzzHtMMYd84BED+vgnRw4xToYIl4=";
|
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s" "-w"
|
|
|
|
"-X main.version=${version}"
|
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export VOUCH_ROOT=$PWD
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/vouch/vouch-proxy";
|
|
|
|
description = "An SSO and OAuth / OIDC login solution for NGINX using the auth_request module";
|
|
|
|
license = licenses.mit;
|
2021-12-22 01:31:36 +00:00
|
|
|
maintainers = with maintainers; [ em0lar erictapen ];
|
|
|
|
platforms = lib.platforms.linux;
|
2021-08-23 06:46:32 +00:00
|
|
|
};
|
|
|
|
}
|