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