2023-02-02 18:25:31 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2021-08-25 08:27:29 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "vouch-proxy";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.40.0";
|
2021-08-25 08:27:29 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vouch";
|
|
|
|
repo = "vouch-proxy";
|
2023-02-02 18:25:31 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-/B7MMRkI5DhDBWa53mgFUME1CR3FSxxQ8UWjlN19EmQ=";
|
2021-08-25 08:27:29 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
vendorHash = "sha256-1k9YFdackF10iJWJ22XlaENlOfRkZMs+IedDWnd/h8E=";
|
2021-08-25 08:27:29 +00:00
|
|
|
|
|
|
|
ldflags = [
|
2023-02-02 18:25:31 +00:00
|
|
|
"-s"
|
|
|
|
"-w"
|
2021-08-25 08:27:29 +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-02-02 18:25:31 +00:00
|
|
|
changelog = "https://github.com/vouch/vouch-proxy/blob/v${version}/CHANGELOG.md";
|
2021-08-25 08:27:29 +00:00
|
|
|
license = licenses.mit;
|
2022-06-16 17:23:12 +00:00
|
|
|
maintainers = with maintainers; [ leona erictapen ];
|
2023-02-02 18:25:31 +00:00
|
|
|
platforms = platforms.linux;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "vouch-proxy";
|
2021-08-25 08:27:29 +00:00
|
|
|
};
|
|
|
|
}
|