nixpkgs/pkgs/servers/vouch-proxy/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
821 B
Nix
Raw Normal View History

2021-08-23 08:46:32 +02:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "vouch-proxy";
2022-08-17 03:25:44 +02:00
version = "0.37.3";
2021-08-23 08:46:32 +02:00
src = fetchFromGitHub {
owner = "vouch";
repo = "vouch-proxy";
rev = "v${version}";
2022-08-17 03:25:44 +02:00
sha256 = "sha256-zXt1Xo6xq1g1putx4q6z7SEXK4lNGRgRnNPXajL5Znw=";
2021-08-23 08:46:32 +02:00
};
2022-08-17 03:25:44 +02:00
vendorSha256 = "sha256-E1x1QTagXkL4NQ7REDuTHpUaadiz72e3jMLPVquSSV4=";
2021-08-23 08:46:32 +02:00
ldflags = [
"-s" "-w"
"-X main.version=${version}"
];
2022-04-13 14:13:07 +02:00
# broken with go>1.16
doCheck = false;
2021-08-23 08:46:32 +02:00
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;
2022-06-06 21:50:18 +02:00
maintainers = with maintainers; [ leona erictapen ];
platforms = lib.platforms.linux;
2021-08-23 08:46:32 +02:00
};
}