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