about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/vouch-proxy
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2021-09-08 17:57:14 +0000
committerAlyssa Ross <hi@alyssa.is>2021-09-13 11:31:47 +0000
commitee7984efa14902a2ddd820c937457667a4f40c6a (patch)
treec9c1d046733cefe5e21fdd8a52104175d47b2443 /nixpkgs/pkgs/servers/vouch-proxy
parentffc9d4ba381da62fd08b361bacd1e71e2a3d934d (diff)
parentb3c692172e5b5241b028a98e1977f9fb12eeaf42 (diff)
downloadnixlib-ee7984efa14902a2ddd820c937457667a4f40c6a.tar
nixlib-ee7984efa14902a2ddd820c937457667a4f40c6a.tar.gz
nixlib-ee7984efa14902a2ddd820c937457667a4f40c6a.tar.bz2
nixlib-ee7984efa14902a2ddd820c937457667a4f40c6a.tar.lz
nixlib-ee7984efa14902a2ddd820c937457667a4f40c6a.tar.xz
nixlib-ee7984efa14902a2ddd820c937457667a4f40c6a.tar.zst
nixlib-ee7984efa14902a2ddd820c937457667a4f40c6a.zip
Merge commit 'b3c692172e5b5241b028a98e1977f9fb12eeaf42'
Diffstat (limited to 'nixpkgs/pkgs/servers/vouch-proxy')
-rw-r--r--nixpkgs/pkgs/servers/vouch-proxy/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/vouch-proxy/default.nix b/nixpkgs/pkgs/servers/vouch-proxy/default.nix
new file mode 100644
index 000000000000..8badb4f8fdd9
--- /dev/null
+++ b/nixpkgs/pkgs/servers/vouch-proxy/default.nix
@@ -0,0 +1,31 @@
+{ lib, buildGoModule, fetchFromGitHub }:
+
+buildGoModule rec {
+  pname = "vouch-proxy";
+  version = "0.32.0";
+
+  src = fetchFromGitHub {
+    owner = "vouch";
+    repo = "vouch-proxy";
+    rev = "v${version}";
+    sha256 = "sha256-thA3hsGNDifUc0XFsOB8cjJTrz4NY+NtK05a20AFzJ8=";
+  };
+
+  vendorSha256 = "sha256-ifH+420FIrib+zQtzzHtMMYd84BED+vgnRw4xToYIl4=";
+
+  ldflags = [
+    "-s" "-w"
+    "-X main.version=${version}"
+  ];
+
+  preCheck = ''
+    export VOUCH_ROOT=$PWD
+  '';
+
+  meta = with lib; {
+    homepage = "https://github.com/vouch/vouch-proxy";
+    description = "An SSO and OAuth / OIDC login solution for NGINX using the auth_request module";
+    license = licenses.mit;
+    maintainers = with maintainers; [ em0lar ];
+  };
+}