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