base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12 (#356361)
[NixPkgs.git] / pkgs / tools / security / gotrue / supabase.nix
bloba7b9bbad2d940ccf3e2ccf13f2b882f31ee4e8cd
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 , testers
5 , gotrue-supabase
6 }:
8 buildGoModule rec {
9   pname = "auth";
10   version = "2.163.2";
12   src = fetchFromGitHub {
13     owner = "supabase";
14     repo = "auth";
15     rev = "v${version}";
16     hash = "sha256-Y+A8uYC6FUmAgD4TMXShhknVdlmSZ5UwiqEfJUEpq6k=";
17   };
19   vendorHash = "sha256-Tg2X4vLuff5XTegDl4vrbvCycbuq4BgEq+O5FhWO+Ds=";
21   ldflags = [
22     "-s"
23     "-w"
24     "-X github.com/supabase/auth/internal/utilities.Version=${version}"
25   ];
27   # integration tests require network to connect to postgres database
28   doCheck = false;
30   passthru.tests.version = testers.testVersion {
31     package = gotrue-supabase;
32     command = "auth version";
33     inherit version;
34   };
36   meta = with lib; {
37     homepage = "https://github.com/supabase/auth";
38     description = "JWT based API for managing users and issuing JWT tokens";
39     mainProgram = "auth";
40     changelog = "https://github.com/supabase/auth/releases/tag/v${version}";
41     license = licenses.mit;
42     maintainers = with maintainers; [ urandom ];
43   };