7e47f3658e
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
37 lines
824 B
Nix
37 lines
824 B
Nix
|
|
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "spicedb";
|
|
version = "1.36.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "authzed";
|
|
repo = "spicedb";
|
|
rev = "v${version}";
|
|
hash = "sha256-39sRog9EUPF8x8splTl456viyZKiEupwqQLGTq/vFYU=";
|
|
};
|
|
|
|
vendorHash = "sha256-Xl03IVSqBSIq1ZV/c96qhlTQ1RcWcqqWPf63fGbfNOQ=";
|
|
|
|
ldflags = [
|
|
"-X 'github.com/jzelinskie/cobrautil/v2.Version=${src.rev}'"
|
|
];
|
|
|
|
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 ];
|
|
mainProgram = "spicedb";
|
|
};
|
|
}
|