about summary refs log tree commit diff
path: root/pkgs/tools/security/gotrue
diff options
context:
space:
mode:
authorColin Arnott <colin@urandom.co.uk>2022-11-29 22:07:13 +0000
committerColin Arnott <colin@urandom.co.uk>2022-11-30 15:52:56 +0000
commitd28784e5d3dbb17a9013c59039c186bd8f417acb (patch)
tree3a0e3b71372295f334a87a68b252325753df25e4 /pkgs/tools/security/gotrue
parent84b56a85593e2d5153dcf3694634f7353a8505c2 (diff)
gotrue-supabase: init at 2.35.0
Fixes #170203
Diffstat (limited to 'pkgs/tools/security/gotrue')
-rw-r--r--pkgs/tools/security/gotrue/default.nix4
-rw-r--r--pkgs/tools/security/gotrue/supabase.nix32
2 files changed, 34 insertions, 2 deletions
diff --git a/pkgs/tools/security/gotrue/default.nix b/pkgs/tools/security/gotrue/default.nix
index 9ef8967891778..112e0c4ddc6d1 100644
--- a/pkgs/tools/security/gotrue/default.nix
+++ b/pkgs/tools/security/gotrue/default.nix
@@ -1,4 +1,4 @@
-{ buildGoModule, fetchFromGitHub, lib }:
+{ lib, buildGoModule, fetchFromGitHub }:
 
 buildGoModule rec {
   pname = "gotrue";
@@ -16,7 +16,7 @@ buildGoModule rec {
   ldflags = [
     "-s"
     "-w"
-    "-X github.com/netlify/gotrue/cmd.Version=${version}"
+    "-X=github.com/netlify/gotrue/cmd.Version=${version}"
   ];
 
   # integration tests require network access
diff --git a/pkgs/tools/security/gotrue/supabase.nix b/pkgs/tools/security/gotrue/supabase.nix
new file mode 100644
index 0000000000000..5cdbe402501c5
--- /dev/null
+++ b/pkgs/tools/security/gotrue/supabase.nix
@@ -0,0 +1,32 @@
+{ lib, buildGoModule, fetchFromGitHub }:
+
+buildGoModule rec {
+  pname = "gotrue";
+  version = "2.35.0";
+
+  src = fetchFromGitHub {
+    owner = "supabase";
+    repo = pname;
+    rev = "v${version}";
+    hash = "sha256-uFE2pcEpGhrl8LcZLvYEMlq8sgRmFkltf3H8huZzXpM=";
+  };
+
+  vendorHash = "sha256-uchgHxUczb4IIUkUdHWyeXWr2LXda6eWwjQxUBcPDoA=";
+
+  ldflags = [
+    "-s"
+    "-w"
+    "-X=github.com/netlify/gotrue/utilities.Version=${version}"
+  ];
+
+  # integration tests require network to connect to postgres database
+  doCheck = false;
+
+  meta = with lib; {
+    homepage = "https://github.com/supabase/gotrue";
+    description = "A JWT based API for managing users and issuing JWT tokens";
+    changelog = "https://github.com/supabase/gotrue/releases/tag/v${version}";
+    license = licenses.mit;
+    maintainers = with maintainers; [ urandom ];
+  };
+}