nixpkgs/pkgs/tools/security/gotrue/supabase.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
1.0 KiB
Nix
Raw Normal View History

2023-02-10 07:27:38 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
, testers
, gotrue-supabase
}:
buildGoModule rec {
pname = "gotrue";
2023-05-21 18:45:39 +00:00
version = "2.67.1";
src = fetchFromGitHub {
owner = "supabase";
repo = pname;
rev = "v${version}";
2023-05-21 18:45:39 +00:00
hash = "sha256-aJQCd4azeEvZiC1MUEPz1siy7ljSqvSYbEvQQHY14KM=";
};
2023-05-21 18:45:39 +00:00
vendorHash = "sha256-67IGkVQja1tBNBBV9KCSrQqkF6glvS0GAGZPINiTZu8=";
ldflags = [
"-s"
"-w"
2023-02-10 07:27:38 +00:00
"-X=github.com/netlify/gotrue/internal/utilities.Version=${version}"
];
# integration tests require network to connect to postgres database
doCheck = false;
2023-02-10 07:27:38 +00:00
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";
changelog = "https://github.com/supabase/gotrue/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ urandom ];
};
}