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";
|
|
|
|
version = "2.155.6";
|
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-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-dldCFDiKGQU/XqtzkvzTdwtI8rDjFaaYJw9elYmDglM=";
|
2022-12-02 08:20:57 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
vendorHash = "sha256-ttdrHBA6Dybv+oNljIJpOlA2CZPwTIi9fI32w5Khp9Y=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|