c7f94ff3ce
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
43 lines
1 KiB
Nix
43 lines
1 KiB
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, testers
|
|
, gotrue-supabase
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "gotrue";
|
|
version = "2.92.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "supabase";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-acOTuvs9AFDGdmj4dwTAabhO31MAJgYOVZghlPQiXT4=";
|
|
};
|
|
|
|
vendorHash = "sha256-r1xJka1ISahaHJOkFwjn/Nrf2EU0iGVosz8PZnH31TE=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X github.com/supabase/gotrue/internal/utilities.Version=${version}"
|
|
];
|
|
|
|
# integration tests require network to connect to postgres database
|
|
doCheck = false;
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = gotrue-supabase;
|
|
command = "gotrue version";
|
|
inherit version;
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|