nixpkgs/pkgs/servers/spicedb/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
824 B
Nix
Raw Normal View History

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "spicedb";
2024-06-20 18:52:53 +00:00
version = "1.33.1";
src = fetchFromGitHub {
owner = "authzed";
repo = "spicedb";
rev = "v${version}";
2024-06-20 18:52:53 +00:00
hash = "sha256-qEEttgo7OqCEuC+mj2e5HW1IpIl5czxScBmaLiJJuUY=";
};
2024-05-25 03:23:40 +00:00
vendorHash = "sha256-pqHDSQQMvfas9yeyhs5cWokBPISQygz2aHf6W5Zc+co=";
2024-06-18 09:56:45 +00:00
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 ];
2023-11-23 21:09:35 +00:00
mainProgram = "spicedb";
};
}