nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5 testers,
6 gotrue-supabase,
7}:
8
9buildGoModule rec {
10 pname = "auth";
11 version = "2.177.0";
12
13 src = fetchFromGitHub {
14 owner = "supabase";
15 repo = "auth";
16 rev = "v${version}";
17 hash = "sha256-Ug0Kg6h4VrN1gXo7OmpLj5CLQcj/0tYQh5hGVIjXwhY=";
18 };
19
20 vendorHash = "sha256-AU14lvEQQx9JCb1awSo+h63QY0k2v7QibYP8kidfJ8A=";
21
22 ldflags = [
23 "-s"
24 "-w"
25 "-X github.com/supabase/auth/internal/utilities.Version=${version}"
26 ];
27
28 # integration tests require network to connect to postgres database
29 doCheck = false;
30
31 passthru.tests.version = testers.testVersion {
32 package = gotrue-supabase;
33 command = "auth version";
34 inherit version;
35 };
36
37 meta = with lib; {
38 homepage = "https://github.com/supabase/auth";
39 description = "JWT based API for managing users and issuing JWT tokens";
40 mainProgram = "auth";
41 changelog = "https://github.com/supabase/auth/releases/tag/v${version}";
42 license = licenses.mit;
43 maintainers = with maintainers; [ urandom ];
44 };
45}