2023-02-16 17:41:37 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, testers
|
|
|
|
, gotrue-supabase
|
|
|
|
}:
|
2022-12-02 08:20:57 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
2024-07-27 06:49:29 +00:00
|
|
|
pname = "auth";
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "2.161.0";
|
2022-12-02 08:20:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "supabase";
|
2024-07-27 06:49:29 +00:00
|
|
|
repo = "auth";
|
2022-12-02 08:20:57 +00:00
|
|
|
rev = "v${version}";
|
2024-10-04 16:56:33 +00:00
|
|
|
hash = "sha256-+tWCA1FGmvqivYI/wqaVY0zJKwqUqpZfotuHhHmuDwc=";
|
2022-12-02 08:20:57 +00:00
|
|
|
};
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
vendorHash = "sha256-nmvZKkSfOflsrcos3cCZHrq4DVF23TQG9kST0AcjN7E=";
|
2022-12-02 08:20:57 +00:00
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
2024-07-27 06:49:29 +00:00
|
|
|
"-X github.com/supabase/auth/internal/utilities.Version=${version}"
|
2022-12-02 08:20:57 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# integration tests require network to connect to postgres database
|
|
|
|
doCheck = false;
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = gotrue-supabase;
|
2024-07-27 06:49:29 +00:00
|
|
|
command = "auth version";
|
2023-02-16 17:41:37 +00:00
|
|
|
inherit version;
|
|
|
|
};
|
|
|
|
|
2022-12-02 08:20:57 +00:00
|
|
|
meta = with lib; {
|
2024-07-27 06:49:29 +00:00
|
|
|
homepage = "https://github.com/supabase/auth";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "JWT based API for managing users and issuing JWT tokens";
|
2024-07-27 06:49:29 +00:00
|
|
|
mainProgram = "auth";
|
|
|
|
changelog = "https://github.com/supabase/auth/releases/tag/v${version}";
|
2022-12-02 08:20:57 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ urandom ];
|
|
|
|
};
|
|
|
|
}
|