2022-08-02 06:43:57 +02:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "zed";
|
2024-09-04 13:22:56 +02:00
|
|
|
version = "0.21.1";
|
2022-08-02 06:43:57 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "authzed";
|
|
|
|
repo = "zed";
|
|
|
|
rev = "v${version}";
|
2024-09-04 13:22:56 +02:00
|
|
|
hash = "sha256-X8kZjPjFGMUfSQLdS6/XA1eNRQH6n/FffgbC19r1WRU=";
|
2022-08-02 06:43:57 +02:00
|
|
|
};
|
|
|
|
|
2024-09-04 13:22:56 +02:00
|
|
|
vendorHash = "sha256-Q8OW9aBs1fcUdKin6uX1s6oD289eCUffmAK5nr3xn0s=";
|
2022-08-02 06:43:57 +02:00
|
|
|
|
2024-06-18 11:56:45 +02:00
|
|
|
ldflags = [
|
|
|
|
"-X 'github.com/jzelinskie/cobrautil/v2.Version=${src.rev}'"
|
|
|
|
];
|
|
|
|
|
2022-08-02 06:43:57 +02:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Command line for managing SpiceDB";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "zed";
|
2022-08-02 06:43:57 +02: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 ];
|
|
|
|
};
|
|
|
|
}
|