diff options
author | Nikola Knezevic <nikola@knezevic.ch> | 2020-02-11 15:13:34 +0100 |
---|---|---|
committer | Nikola Knezevic <nikola@knezevic.ch> | 2020-04-20 09:39:00 +0200 |
commit | 6256d88eedd7af0a03e711013d37fe3d97689537 (patch) | |
tree | 3b1c3d023e5d3b6e0a5e77d98c18cc52a4e4868f /pkgs/servers/oauth2_proxy/default.nix | |
parent | 636a5a6fee34a15bf0a5a9fa8911970ca51f5ea4 (diff) | |
download | nixpkgs-6256d88eedd7af0a03e711013d37fe3d97689537.tar nixpkgs-6256d88eedd7af0a03e711013d37fe3d97689537.tar.gz nixpkgs-6256d88eedd7af0a03e711013d37fe3d97689537.tar.bz2 nixpkgs-6256d88eedd7af0a03e711013d37fe3d97689537.tar.lz nixpkgs-6256d88eedd7af0a03e711013d37fe3d97689537.tar.xz nixpkgs-6256d88eedd7af0a03e711013d37fe3d97689537.tar.zst nixpkgs-6256d88eedd7af0a03e711013d37fe3d97689537.zip |
oauth2_proxy: 3.2.0 -> 5.1.0
v3.2.0 is 11 months old. v5.1.0 brings new providers and fixes security vulnerabilities. In addition, the project switched to go 1.14 and uses go modules, which is now reflected in the build process. NOTE: There are many breaking changes, which are then reflected in the NixOS services configuration.
Diffstat (limited to 'pkgs/servers/oauth2_proxy/default.nix')
-rw-r--r-- | pkgs/servers/oauth2_proxy/default.nix | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/pkgs/servers/oauth2_proxy/default.nix b/pkgs/servers/oauth2_proxy/default.nix index d0a57198820..339e8496624 100644 --- a/pkgs/servers/oauth2_proxy/default.nix +++ b/pkgs/servers/oauth2_proxy/default.nix @@ -2,21 +2,24 @@ buildGoPackage rec { pname = "oauth2_proxy"; - version = "3.2.0"; - + version = "5.1.0"; + goPackagePath = "github.com/pusher/${pname}"; src = fetchFromGitHub { repo = pname; owner = "pusher"; - sha256 = "0k73ggyh12g2vzjq91i9d3bxbqfvh5k6njzza1lvkzasgp07wisg"; + sha256 = "190k1v2c1f6vp9waqs01rlzm0jc3vrmsq1w1n0c2q2nfqx76y2wz"; rev = "v${version}"; }; goDeps = ./deps.nix; + # Taken from https://github.com/oauth2-proxy/oauth2-proxy/blob/master/Makefile + buildFlagsArray = ("-ldflags=-X main.VERSION=${version}"); + meta = with lib; { - description = "A reverse proxy that provides authentication with Google, Github or other provider"; + description = "A reverse proxy that provides authentication with Google, Github, or other providers"; homepage = "https://github.com/pusher/oauth2_proxy/"; license = licenses.mit; maintainers = [ maintainers.yorickvp ]; |