nixpkgs/pkgs/servers/vouch-proxy/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
824 B
Nix
Raw Normal View History

2021-08-23 06:46:32 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "vouch-proxy";
2022-04-26 03:48:28 +00:00
version = "0.37.0";
2021-08-23 06:46:32 +00:00
src = fetchFromGitHub {
owner = "vouch";
repo = "vouch-proxy";
rev = "v${version}";
2022-04-26 03:48:28 +00:00
sha256 = "0rcc5b3v5d9v4y78z5fnjbn1k10xy8cpgxjhqc7j22k9wkic05mh";
2021-08-23 06:46:32 +00:00
};
2022-04-26 03:48:28 +00:00
vendorSha256 = "0pi230xcaf0wkphfn3s4h3riviihxlqwyb9lzfdvh8h5dpizxwc9";
2021-08-23 06:46:32 +00:00
ldflags = [
"-s" "-w"
"-X main.version=${version}"
];
2022-04-13 12:13:07 +00:00
# broken with go>1.16
doCheck = false;
2021-08-23 06:46:32 +00:00
preCheck = ''
export VOUCH_ROOT=$PWD
'';
meta = with lib; {
homepage = "https://github.com/vouch/vouch-proxy";
description = "An SSO and OAuth / OIDC login solution for NGINX using the auth_request module";
license = licenses.mit;
maintainers = with maintainers; [ em0lar erictapen ];
platforms = lib.platforms.linux;
2021-08-23 06:46:32 +00:00
};
}