mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 03:34:58 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
39 lines
901 B
Nix
39 lines
901 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "vouch-proxy";
|
|
version = "0.40.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vouch";
|
|
repo = "vouch-proxy";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-/B7MMRkI5DhDBWa53mgFUME1CR3FSxxQ8UWjlN19EmQ=";
|
|
};
|
|
|
|
vendorHash = "sha256-1k9YFdackF10iJWJ22XlaENlOfRkZMs+IedDWnd/h8E=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X main.version=${version}"
|
|
];
|
|
|
|
preCheck = ''
|
|
export VOUCH_ROOT=$PWD
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/vouch/vouch-proxy";
|
|
description = "SSO and OAuth / OIDC login solution for NGINX using the auth_request module";
|
|
changelog = "https://github.com/vouch/vouch-proxy/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ leona erictapen ];
|
|
platforms = platforms.linux;
|
|
mainProgram = "vouch-proxy";
|
|
};
|
|
}
|