2023-02-16 17:41:37 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, testers
|
|
|
|
, gotrue-supabase
|
|
|
|
}:
|
2022-12-02 08:20:57 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "gotrue";
|
2023-02-16 17:41:37 +00:00
|
|
|
version = "2.47.1";
|
2022-12-02 08:20:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "supabase";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-02-16 17:41:37 +00:00
|
|
|
hash = "sha256-GBrdYlWvtlz/A/5Tn58EPYBL3X73D44GzbN1OrzwU8U=";
|
2022-12-02 08:20:57 +00:00
|
|
|
};
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
vendorHash = "sha256-FIl30sKmdcXayK8KWGFl+N+lYExl4ibKZ2tcvelw8zo=";
|
2022-12-02 08:20:57 +00:00
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
2023-02-16 17:41:37 +00:00
|
|
|
"-X=github.com/netlify/gotrue/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;
|
|
|
|
command = "gotrue version";
|
|
|
|
inherit version;
|
|
|
|
};
|
|
|
|
|
2022-12-02 08:20:57 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|