2022-11-29 22:07:13 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "gotrue";
|
2023-02-04 07:45:07 +00:00
|
|
|
version = "2.44.0";
|
2022-11-29 22:07:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "supabase";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-02-04 07:45:07 +00:00
|
|
|
hash = "sha256-LSA6h6hs5M80urBasVDWZSCNA3fWxjYjvbPRbHLOX0Y=";
|
2022-11-29 22:07:13 +00:00
|
|
|
};
|
|
|
|
|
2023-02-04 07:45:07 +00:00
|
|
|
vendorHash = "sha256-FIl30sKmdcXayK8KWGFl+N+lYExl4ibKZ2tcvelw8zo=";
|
2022-11-29 22:07:13 +00:00
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X=github.com/netlify/gotrue/utilities.Version=${version}"
|
|
|
|
];
|
|
|
|
|
|
|
|
# integration tests require network to connect to postgres database
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/supabase/gotrue";
|
|
|
|
description = "A JWT based API for managing users and issuing JWT tokens";
|
|
|
|
changelog = "https://github.com/supabase/gotrue/releases/tag/v${version}";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ urandom ];
|
|
|
|
};
|
|
|
|
}
|