2022-08-02 04:43:57 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "zed";
|
2024-09-19 19:50:32 +00:00
|
|
|
version = "0.21.2";
|
2022-08-02 04:43:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "authzed";
|
|
|
|
repo = "zed";
|
|
|
|
rev = "v${version}";
|
2024-09-19 19:50:32 +00:00
|
|
|
hash = "sha256-nSvWNelmqzgwf7M+9drqahwwo+YoQLgEscnigsBUwdI=";
|
2022-08-02 04:43:57 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 19:50:32 +00:00
|
|
|
vendorHash = "sha256-uTuI8rYmRUkbRf46+hZm1xHflFDcro6hVG8aI2C4eWs=";
|
2022-08-02 04:43:57 +00:00
|
|
|
|
2024-06-18 09:56:45 +00:00
|
|
|
ldflags = [
|
|
|
|
"-X 'github.com/jzelinskie/cobrautil/v2.Version=${src.rev}'"
|
|
|
|
];
|
|
|
|
|
2022-08-02 04:43:57 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Command line for managing SpiceDB";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "zed";
|
2022-08-02 04:43:57 +00:00
|
|
|
longDescription = ''
|
|
|
|
SpiceDB is an open-source permissions database inspired by
|
|
|
|
Google Zanzibar. zed is the command line client for SpiceDB.
|
|
|
|
'';
|
|
|
|
homepage = "https://authzed.com/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|