mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
oauth2-proxy: add versionCheckHook
(cherry picked from commit b756a8161c)
This commit is contained in:
committed by
github-actions[bot]
parent
3bb1a13998
commit
bea14b3981
@@ -2,6 +2,7 @@
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
versionCheckHook,
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
@@ -20,6 +21,10 @@ buildGoModule rec {
|
||||
# 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/";
|
||||
|
||||
Reference in New Issue
Block a user