mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-08 13:13:09 +00:00
![stuebinm](/assets/img/avatar_default.png)
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
45 lines
1.0 KiB
Nix
45 lines
1.0 KiB
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, testers
|
|
, gotrue-supabase
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "gotrue";
|
|
version = "2.105.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "supabase";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-6tFXuVBd7UptoVMSse1Pk9ok6XyGL994pfFkFTyc5I0=";
|
|
};
|
|
|
|
vendorHash = "sha256-cwTwze8WuhL5exaY5HJYDgcxNB9O1QuFpJgZmj6R838=";
|
|
|
|
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";
|
|
mainProgram = "gotrue";
|
|
changelog = "https://github.com/supabase/gotrue/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ urandom ];
|
|
};
|
|
}
|