2018-04-12 16:47:00 +01:00
|
|
|
{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
|
2016-06-04 12:25:34 +01:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "oauth2_proxy-${version}";
|
2018-04-12 16:47:00 +01:00
|
|
|
version = "20180325-${stdenv.lib.strings.substring 0 7 rev}";
|
|
|
|
rev = "a94b0a8b25e553f7333f7b84aeb89d9d18ec259b";
|
2016-06-04 12:25:34 +01:00
|
|
|
|
|
|
|
goPackagePath = "github.com/bitly/oauth2_proxy";
|
|
|
|
|
2018-04-12 16:47:00 +01:00
|
|
|
src = fetchFromGitHub {
|
2016-06-04 12:25:34 +01:00
|
|
|
inherit rev;
|
2018-04-12 16:47:00 +01:00
|
|
|
repo = "oauth2_proxy";
|
|
|
|
owner = "bitly";
|
|
|
|
sha256 = "07m258s9fxjsgixggw0d1zicd7l6l2rkm5mh3zdjdaj20sqcj217";
|
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";
|
|
|
|
homepage = https://github.com/bitly/oauth2_proxy/;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.yorickvp ];
|
|
|
|
};
|
2016-06-04 12:25:34 +01:00
|
|
|
}
|