depot/third_party/nixpkgs/pkgs/tools/security/gotrue/supabase.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

44 lines
1 KiB
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, testers
, gotrue-supabase
}:
buildGoModule rec {
pname = "auth";
version = "2.161.0";
src = fetchFromGitHub {
owner = "supabase";
repo = "auth";
rev = "v${version}";
hash = "sha256-+tWCA1FGmvqivYI/wqaVY0zJKwqUqpZfotuHhHmuDwc=";
};
vendorHash = "sha256-nmvZKkSfOflsrcos3cCZHrq4DVF23TQG9kST0AcjN7E=";
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 ];
};
}