depot/third_party/nixpkgs/pkgs/servers/spicedb/zed.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

34 lines
821 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "zed";
version = "0.21.1";
src = fetchFromGitHub {
owner = "authzed";
repo = "zed";
rev = "v${version}";
hash = "sha256-X8kZjPjFGMUfSQLdS6/XA1eNRQH6n/FffgbC19r1WRU=";
};
vendorHash = "sha256-Q8OW9aBs1fcUdKin6uX1s6oD289eCUffmAK5nr3xn0s=";
ldflags = [
"-X 'github.com/jzelinskie/cobrautil/v2.Version=${src.rev}'"
];
meta = with lib; {
description = "Command line for managing SpiceDB";
mainProgram = "zed";
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 ];
};
}