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

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

39 lines
904 B
Nix
Raw Permalink Normal View History

2023-01-23 20:03:25 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
2021-08-23 06:46:32 +00:00
buildGoModule rec {
pname = "vouch-proxy";
2024-05-01 13:12:18 +00:00
version = "0.40.0";
2021-08-23 06:46:32 +00:00
src = fetchFromGitHub {
owner = "vouch";
repo = "vouch-proxy";
2023-01-23 20:03:25 +00:00
rev = "refs/tags/v${version}";
2024-05-01 13:12:18 +00:00
hash = "sha256-/B7MMRkI5DhDBWa53mgFUME1CR3FSxxQ8UWjlN19EmQ=";
2021-08-23 06:46:32 +00:00
};
2024-05-01 13:12:18 +00:00
vendorHash = "sha256-1k9YFdackF10iJWJ22XlaENlOfRkZMs+IedDWnd/h8E=";
2021-08-23 06:46:32 +00:00
ldflags = [
2023-01-23 20:03:25 +00:00
"-s"
"-w"
2021-08-23 06:46:32 +00:00
"-X main.version=${version}"
];
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";
2023-01-23 20:03:25 +00:00
changelog = "https://github.com/vouch/vouch-proxy/blob/v${version}/CHANGELOG.md";
2021-08-23 06:46:32 +00:00
license = licenses.mit;
2022-06-06 19:50:18 +00:00
maintainers = with maintainers; [ leona erictapen ];
2023-01-23 20:03:25 +00:00
platforms = platforms.linux;
2023-11-23 21:09:35 +00:00
mainProgram = "vouch-proxy";
2021-08-23 06:46:32 +00:00
};
}