2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "spicedb";
|
2024-09-26 11:04:55 +00:00
|
|
|
version = "1.36.2";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "authzed";
|
|
|
|
repo = "spicedb";
|
|
|
|
rev = "v${version}";
|
2024-09-26 11:04:55 +00:00
|
|
|
hash = "sha256-39sRog9EUPF8x8splTl456viyZKiEupwqQLGTq/vFYU=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
vendorHash = "sha256-Xl03IVSqBSIq1ZV/c96qhlTQ1RcWcqqWPf63fGbfNOQ=";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
ldflags = [
|
|
|
|
"-X 'github.com/jzelinskie/cobrautil/v2.Version=${src.rev}'"
|
|
|
|
];
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
subPackages = [ "cmd/spicedb" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Open source permission database";
|
|
|
|
longDescription = ''
|
|
|
|
SpiceDB is an open-source permissions database inspired by
|
|
|
|
Google Zanzibar.
|
|
|
|
'';
|
|
|
|
homepage = "https://authzed.com/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ thoughtpolice ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "spicedb";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
}
|