2019-06-16 20:59:06 +01:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
2016-06-04 12:25:34 +01:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-04-25 22:32:54 +01:00
|
|
|
pname = "oauth2_proxy";
|
|
|
|
version = "3.2.0";
|
2016-06-04 12:25:34 +01:00
|
|
|
|
2019-04-25 22:32:54 +01:00
|
|
|
goPackagePath = "github.com/pusher/${pname}";
|
2016-06-04 12:25:34 +01:00
|
|
|
|
2018-04-12 16:47:00 +01:00
|
|
|
src = fetchFromGitHub {
|
2019-04-25 22:32:54 +01:00
|
|
|
repo = pname;
|
|
|
|
owner = "pusher";
|
|
|
|
sha256 = "0k73ggyh12g2vzjq91i9d3bxbqfvh5k6njzza1lvkzasgp07wisg";
|
|
|
|
rev = "v${version}";
|
2016-06-04 12:25:34 +01:00
|
|
|
};
|
|
|
|
|
2016-09-10 11:04:13 +01:00
|
|
|
goDeps = ./deps.nix;
|
2018-04-12 16:47:00 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A reverse proxy that provides authentication with Google, Github or other provider";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/pusher/oauth2_proxy/";
|
2018-04-12 16:47:00 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.yorickvp ];
|
|
|
|
};
|
2016-06-04 12:25:34 +01:00
|
|
|
}
|