depot/third_party/nixpkgs/pkgs/tools/security/gotrue/supabase.nix
Default email 6d4aeb4377 Project import generated by Copybara.
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
2023-01-11 08:51:40 +01:00

32 lines
849 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "gotrue";
version = "2.40.1";
src = fetchFromGitHub {
owner = "supabase";
repo = pname;
rev = "v${version}";
hash = "sha256-PXWGjuLUHo+adlomL2HqdY7cPqFIS0ttg7hYHNbAWP4=";
};
vendorHash = "sha256-3dXfg9tblPx9V5LzzVm3UtCwGcPIAm2MaKm9JQi69mU=";
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 ];
};
}