Merge pull request #330634 from r-ryantm/auto-update/circumflex
[NixPkgs.git] / pkgs / servers / spicedb / default.nix
bloba7afa073b122db49552a6652fdfb0968da9079de
2 { lib
3 , buildGoModule
4 , fetchFromGitHub
5 }:
7 buildGoModule rec {
8   pname = "spicedb";
9   version = "1.33.1";
11   src = fetchFromGitHub {
12     owner = "authzed";
13     repo = "spicedb";
14     rev = "v${version}";
15     hash = "sha256-qEEttgo7OqCEuC+mj2e5HW1IpIl5czxScBmaLiJJuUY=";
16   };
18   vendorHash = "sha256-pqHDSQQMvfas9yeyhs5cWokBPISQygz2aHf6W5Zc+co=";
20   ldflags = [
21     "-X 'github.com/jzelinskie/cobrautil/v2.Version=${src.rev}'"
22   ];
24   subPackages = [ "cmd/spicedb" ];
26   meta = with lib; {
27     description = "Open source permission database";
28     longDescription = ''
29       SpiceDB is an open-source permissions database inspired by
30       Google Zanzibar.
31     '';
32     homepage = "https://authzed.com/";
33     license = licenses.asl20;
34     maintainers = with maintainers; [ thoughtpolice ];
35     mainProgram = "spicedb";
36   };