about summary refs log tree commit diff
path: root/pkgs/by-name/ng
diff options
context:
space:
mode:
authorBruno BELANYI <bruno@belanyi.fr>2024-04-27 13:17:45 +0100
committertomf <tom@tom-fitzhenry.me.uk>2024-04-27 23:11:38 +1000
commit12f16972ac37251f46d0c0ffe97a45f6bf3a3e91 (patch)
tree35d2f38feb2d606af74c6e16bd1f18cf8901cdfa /pkgs/by-name/ng
parent240a9a5c4f901f10215cab1a6103f743bca1841e (diff)
nginx-sso: move to 'pkgs/by-name'
Diffstat (limited to 'pkgs/by-name/ng')
-rw-r--r--pkgs/by-name/ng/nginx-sso/package.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/by-name/ng/nginx-sso/package.nix b/pkgs/by-name/ng/nginx-sso/package.nix
new file mode 100644
index 0000000000000..578d55b4477e4
--- /dev/null
+++ b/pkgs/by-name/ng/nginx-sso/package.nix
@@ -0,0 +1,36 @@
+{ lib
+, buildGoModule
+, fetchFromGitHub
+, nixosTests
+}:
+
+buildGoModule rec {
+  pname = "nginx-sso";
+  version = "0.27.3";
+
+  src = fetchFromGitHub {
+    owner = "Luzifer";
+    repo = "nginx-sso";
+    rev = "v${version}";
+    hash = "sha256-8ZfNHjf5sbcBasu3o3AHCL0tGROixdNZkDF9yd/uPbs=";
+  };
+
+  vendorHash = "sha256-bquK6/xT+xhEGBDeNN3U1qwSxrHWQhdHNuw9RXoqM+8=";
+
+  postInstall = ''
+    mkdir -p $out/share
+    cp -R $src/frontend $out/share
+  '';
+
+  passthru.tests = {
+    inherit (nixosTests) nginx-sso;
+  };
+
+  meta = with lib; {
+    description = "SSO authentication provider for the auth_request nginx module";
+    homepage = "https://github.com/Luzifer/nginx-sso";
+    license = licenses.asl20;
+    maintainers = with maintainers; [ ambroisie ];
+    mainProgram = "nginx-sso";
+  };
+}