Merge pull request #330634 from r-ryantm/auto-update/circumflex
[NixPkgs.git] / pkgs / servers / oauth2-proxy / default.nix
blobcdae9ae2351a883e925b9b3c85373878ab28b998
1 { lib, buildGoModule, fetchFromGitHub }:
3 buildGoModule rec {
4   pname = "oauth2-proxy";
5   version = "7.6.0";
7   src = fetchFromGitHub {
8     repo = pname;
9     owner = "oauth2-proxy";
10     sha256 = "sha256-7DmeXl/aDVFdwUiuljM79CttgjzdTVsSeAYrETuJG0M=";
11     rev = "v${version}";
12   };
14   vendorHash = "sha256-ihFNFtfiCGGyJqB2o4SMYleKdjGR4P5JewkynOsC1f0=";
16   # Taken from https://github.com/oauth2-proxy/oauth2-proxy/blob/master/Makefile
17   ldflags = [ "-X main.VERSION=${version}" ];
19   meta = with lib; {
20     description = "Reverse proxy that provides authentication with Google, Github, or other providers";
21     homepage = "https://github.com/oauth2-proxy/oauth2-proxy/";
22     license = licenses.mit;
23     maintainers = teams.serokell.members;
24     mainProgram = "oauth2-proxy";
25   };