nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "gotrue";
9 version = "1.0.1";
10
11 src = fetchFromGitHub {
12 owner = "netlify";
13 repo = pname;
14 rev = "v${version}";
15 hash = "sha256-9h6CyCY7741tJR+qWDLwgPkAtE/kmaoTqlXEY+mOW58=";
16 };
17
18 vendorHash = "sha256-x96+l9EBzYplGRFHsfQazSjqZs35bdXQEJv3pBuaJVo=";
19
20 ldflags = [
21 "-s"
22 "-w"
23 "-X=github.com/netlify/gotrue/cmd.Version=${version}"
24 ];
25
26 # integration tests require network access
27 doCheck = false;
28
29 meta = with lib; {
30 homepage = "https://github.com/netlify/gotrue";
31 description = "SWT based API for managing users and issuing SWT tokens";
32 mainProgram = "gotrue";
33 changelog = "https://github.com/netlify/gotrue/releases/tag/v${version}";
34 license = licenses.mit;
35 maintainers = with maintainers; [ urandom ];
36 };
37}