depot/third_party/nixpkgs/pkgs/tools/security/gotrue/supabase.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

44 lines
1 KiB
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, testers
, gotrue-supabase
}:
buildGoModule rec {
pname = "auth";
version = "2.160.0";
src = fetchFromGitHub {
owner = "supabase";
repo = "auth";
rev = "v${version}";
hash = "sha256-29mTu3Cv3rFsm9q79g2BBzRLWfA9WlBip8xbBROCCzo=";
};
vendorHash = "sha256-cxLN9bdtpZmnhhP9tIYHQXW+KVmKvbS5+j+0gN6Ml3s=";
ldflags = [
"-s"
"-w"
"-X github.com/supabase/auth/internal/utilities.Version=${version}"
];
# integration tests require network to connect to postgres database
doCheck = false;
passthru.tests.version = testers.testVersion {
package = gotrue-supabase;
command = "auth version";
inherit version;
};
meta = with lib; {
homepage = "https://github.com/supabase/auth";
description = "JWT based API for managing users and issuing JWT tokens";
mainProgram = "auth";
changelog = "https://github.com/supabase/auth/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ urandom ];
};
}