mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 08:01:14 +00:00
26 lines
779 B
Nix
26 lines
779 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "oauth2-proxy";
|
|
version = "6.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
repo = pname;
|
|
owner = "oauth2-proxy";
|
|
sha256 = "10vvib4089yywd10kigjszsfxkzv8xzj7dy3wr5df8h80rcfa74n";
|
|
rev = "v${version}";
|
|
};
|
|
|
|
vendorSha256 = "0z8ibmpil899xvjaw7siswy22shjhx17a6lnjpr62paqdxy1sfwc";
|
|
|
|
# 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 providers";
|
|
homepage = "https://github.com/oauth2-proxy/oauth2-proxy/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ yorickvp knl ];
|
|
};
|
|
}
|