squat 80b13363b9 spicedb: add squat as maintainer
I'm working closely on the upstream project and have been contributing
fixes and updates to the Nix package and I would be happy to continue
maintaining this.

Signed-off-by: squat <lserven@gmail.com>
2025-05-28 13:42:23 -05:00

51 lines
1.1 KiB
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
installShellFiles,
}:
buildGoModule rec {
pname = "zed";
version = "0.30.2";
src = fetchFromGitHub {
owner = "authzed";
repo = "zed";
rev = "v${version}";
hash = "sha256-ftSgp0zxUmSTJ7lFHxFdebKrCKbsRocDkfabVpyQ5Kg=";
};
vendorHash = "sha256-2AkknaufRhv79c9WQtcW5oSwMptkR+FB+1/OJazyGSM=";
ldflags = [ "-X 'github.com/jzelinskie/cobrautil/v2.Version=${src.rev}'" ];
preCheck = ''
export NO_COLOR=true
'';
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installShellCompletion --cmd zed \
--bash <($out/bin/zed completion bash) \
--fish <($out/bin/zed completion fish) \
--zsh <($out/bin/zed completion zsh)
'';
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; [
squat
thoughtpolice
];
};
}