depot/third_party/nixpkgs/pkgs/servers/vouch-proxy/default.nix
Default email 8e65f7f0cc Project import generated by Copybara.
GitOrigin-RevId: 062a0c5437b68f950b081bbfc8a699d57a4ee026
2022-03-05 17:20:37 +01:00

32 lines
778 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "vouch-proxy";
version = "0.36.0";
src = fetchFromGitHub {
owner = "vouch";
repo = "vouch-proxy";
rev = "v${version}";
sha256 = "sha256-pgoxRzYc5PIrxnRwWpthFmpsxDfvWTmLT7upQVIFoQo=";
};
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;
maintainers = with maintainers; [ em0lar erictapen ];
platforms = lib.platforms.linux;
};
}