{ lib , buildGoModule , fetchFromGitHub , testers , gotrue-supabase }: buildGoModule rec { pname = "gotrue"; version = "2.82.2"; src = fetchFromGitHub { owner = "supabase"; repo = pname; rev = "v${version}"; hash = "sha256-x/ae7iTfwyEJ7JwNr6US+LJfVt1rZSGpf26LN5MU52o="; }; vendorHash = "sha256-eG6zB/nfsYYvvLf5i8AySkTfXv9rIGTTmyMA4PtcGjg="; 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 ]; }; }