0eaa97ffad
GitOrigin-RevId: c59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38
25 lines
779 B
Nix
25 lines
779 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "oauth2-proxy";
|
|
version = "6.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
repo = pname;
|
|
owner = "oauth2-proxy";
|
|
sha256 = "0mbjg0d0w173xpq69frjdvgyx5k74pkrfx3phc3lq8snvhnf1c2n";
|
|
rev = "v${version}";
|
|
};
|
|
|
|
vendorSha256 = "1hrk3h729kcc77fq44kiywmyzk5a78v7bm5d2yl76lfxxdcdric7";
|
|
|
|
# Taken from https://github.com/oauth2-proxy/oauth2-proxy/blob/master/Makefile
|
|
buildFlagsArray = ("-ldflags=-X main.VERSION=${version}");
|
|
|
|
meta = with lib; {
|
|
description = "A reverse proxy that provides authentication with Google, Github, or other providers";
|
|
homepage = "https://github.com/oauth2-proxy/oauth2-proxy/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ yorickvp knl ];
|
|
};
|
|
}
|