Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
36 lines
972 B
Nix
36 lines
972 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "oauth2-proxy";
|
|
version = "7.12.0";
|
|
|
|
src = fetchFromGitHub {
|
|
repo = "oauth2-proxy";
|
|
owner = "oauth2-proxy";
|
|
sha256 = "sha256-rUjdyGv7mua/bfcxbbQQXrXiJndK3HiyNyjLVnRbuG4=";
|
|
rev = "v${version}";
|
|
};
|
|
|
|
vendorHash = "sha256-6Asydomg4Xz0JciRnODJSqVBtFAmpfMjDnr1JKr222o=";
|
|
|
|
# Taken from https://github.com/oauth2-proxy/oauth2-proxy/blob/master/Makefile
|
|
ldflags = [ "-X github.com/oauth2-proxy/oauth2-proxy/v7/pkg/version.VERSION=v${version}" ];
|
|
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
versionCheckProgramArg = "--version";
|
|
doInstallCheck = true;
|
|
|
|
meta = with lib; {
|
|
description = "Reverse proxy that provides authentication with Google, Github, or other providers";
|
|
homepage = "https://github.com/oauth2-proxy/oauth2-proxy/";
|
|
license = licenses.mit;
|
|
teams = [ teams.serokell ];
|
|
mainProgram = "oauth2-proxy";
|
|
};
|
|
}
|