diff options
author | K900 <me@0upti.me> | 2022-04-06 01:14:21 +0300 |
---|---|---|
committer | K900 <me@0upti.me> | 2022-04-06 01:14:21 +0300 |
commit | d8710ac534fdb541314534c5ea68e1ddaad8573f (patch) | |
tree | fbb9de2224f920b0e22fff55f28e10f873ae8504 /pkgs/development/tools/database/indradb/default.nix | |
parent | 557f7572d8db3fb5ddddf5099c81725fb779edb7 (diff) |
indradb: fix build
Was missing deps and hooks, now it at least compiles
Diffstat (limited to 'pkgs/development/tools/database/indradb/default.nix')
-rw-r--r-- | pkgs/development/tools/database/indradb/default.nix | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/development/tools/database/indradb/default.nix b/pkgs/development/tools/database/indradb/default.nix index f577963e8f4b8..eefb0a32525ff 100644 --- a/pkgs/development/tools/database/indradb/default.nix +++ b/pkgs/development/tools/database/indradb/default.nix @@ -3,6 +3,7 @@ , lib , rustPlatform , rustfmt +, protobuf }: let src = fetchFromGitHub { @@ -30,7 +31,9 @@ in buildAndTestSubdir = "server"; - nativeBuildInputs = [ rustfmt ]; + PROTOC = "${protobuf}/bin/protoc"; + + nativeBuildInputs = [ rustfmt rustPlatform.bindgenHook ]; # test rely on libindradb and it can't be found # failure at https://github.com/indradb/indradb/blob/master/server/tests/plugins.rs#L63 @@ -44,7 +47,9 @@ in cargoSha256 = "sha256-pxan6W/CEsOxv8DbbytEBuIqxWn/C4qT4ze/RnvESOM="; - nativeBuildInputs = [ rustfmt ]; + PROTOC = "${protobuf}/bin/protoc"; + + nativeBuildInputs = [ rustfmt rustPlatform.bindgenHook ]; buildAndTestSubdir = "client"; }; |