depot/third_party/nixpkgs/pkgs/tools/security/gotrue/supabase.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

44 lines
1 KiB
Nix

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