2023-01-23 20:03:25 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2021-08-23 06:46:32 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "vouch-proxy";
|
2023-01-23 19:13:12 +00:00
|
|
|
version = "0.39.0";
|
2021-08-23 06:46:32 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vouch";
|
|
|
|
repo = "vouch-proxy";
|
2023-01-23 20:03:25 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-01-23 19:13:12 +00:00
|
|
|
hash = "sha256-q4tylXW219jzWrdzOQxewRh1advYEouEKiNJvvnIp9U=";
|
2021-08-23 06:46:32 +00:00
|
|
|
};
|
|
|
|
|
2023-01-23 19:13:12 +00:00
|
|
|
vendorHash = "sha256-IUjIGht/oQiWKHfbW7nJaybKpKs179mOkpLIwAb8/hk=";
|
2021-08-23 06:46:32 +00:00
|
|
|
|
|
|
|
ldflags = [
|
2023-01-23 20:03:25 +00:00
|
|
|
"-s"
|
|
|
|
"-w"
|
2021-08-23 06:46:32 +00:00
|
|
|
"-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";
|
2023-01-23 20:03:25 +00:00
|
|
|
changelog = "https://github.com/vouch/vouch-proxy/blob/v${version}/CHANGELOG.md";
|
2021-08-23 06:46:32 +00:00
|
|
|
license = licenses.mit;
|
2022-06-06 19:50:18 +00:00
|
|
|
maintainers = with maintainers; [ leona erictapen ];
|
2023-01-23 20:03:25 +00:00
|
|
|
platforms = platforms.linux;
|
2023-11-23 21:09:35 +00:00
|
|
|
mainProgram = "vouch-proxy";
|
2021-08-23 06:46:32 +00:00
|
|
|
};
|
|
|
|
}
|