oauth2-proxy: add versionCheckHook
This commit is contained in:
parent
232ee28724
commit
b756a8161c
@ -2,6 +2,7 @@
|
|||||||
lib,
|
lib,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
|
versionCheckHook,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
@ -20,6 +21,10 @@ buildGoModule rec {
|
|||||||
# Taken from https://github.com/oauth2-proxy/oauth2-proxy/blob/master/Makefile
|
# 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}" ];
|
ldflags = [ "-X github.com/oauth2-proxy/oauth2-proxy/v7/pkg/version.VERSION=v${version}" ];
|
||||||
|
|
||||||
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||||
|
versionCheckProgramArg = "--version";
|
||||||
|
doInstallCheck = true;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Reverse proxy that provides authentication with Google, Github, or other providers";
|
description = "Reverse proxy that provides authentication with Google, Github, or other providers";
|
||||||
homepage = "https://github.com/oauth2-proxy/oauth2-proxy/";
|
homepage = "https://github.com/oauth2-proxy/oauth2-proxy/";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user