2022-08-05 04:27:15 +00:00
|
|
|
|
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "spicedb";
|
2024-10-26 23:29:33 +00:00
|
|
|
version = "1.37.1";
|
2022-08-05 04:27:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "authzed";
|
|
|
|
repo = "spicedb";
|
|
|
|
rev = "v${version}";
|
2024-10-26 23:29:33 +00:00
|
|
|
hash = "sha256-15X9Q6akidXTYO5U3MYi14u8shTicQQ9wGSVOcefxhg=";
|
2022-08-05 04:27:15 +00:00
|
|
|
};
|
|
|
|
|
2024-10-01 22:51:42 +00:00
|
|
|
vendorHash = "sha256-aTfjSGen9rJ/GTCUFuuEykNqQNsnuNyRGm7CtMSZoJ0=";
|
2022-08-05 04:27:15 +00:00
|
|
|
|
2024-06-18 09:56:45 +00:00
|
|
|
ldflags = [
|
|
|
|
"-X 'github.com/jzelinskie/cobrautil/v2.Version=${src.rev}'"
|
|
|
|
];
|
|
|
|
|
2022-08-05 04:27:15 +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 ];
|
2023-11-23 21:09:35 +00:00
|
|
|
mainProgram = "spicedb";
|
2022-08-05 04:27:15 +00:00
|
|
|
};
|
|
|
|
}
|