anki-sync-server: fix cross compilation

This commit is contained in:
Nick Cao 2024-11-28 10:55:51 -05:00
parent 64b2f13b2e
commit 9dea01228a
No known key found for this signature in database

View File

@ -6,7 +6,7 @@
, openssl , openssl
, pkg-config , pkg-config
, protobuf , buildPackages
}: }:
rustPlatform.buildRustPackage { rustPlatform.buildRustPackage {
@ -30,7 +30,7 @@ rustPlatform.buildRustPackage {
"--skip=scheduler::answering::test::state_application" "--skip=scheduler::answering::test::state_application"
]; ];
nativeBuildInputs = [ protobuf pkg-config ]; nativeBuildInputs = [ pkg-config ];
buildInputs = [ buildInputs = [
openssl openssl
@ -39,7 +39,7 @@ rustPlatform.buildRustPackage {
darwin.apple_sdk.frameworks.SystemConfiguration darwin.apple_sdk.frameworks.SystemConfiguration
]; ];
env.PROTOC = lib.getExe protobuf; env.PROTOC = lib.getExe buildPackages.protobuf;
meta = with lib; { meta = with lib; {
description = "Standalone official anki sync server"; description = "Standalone official anki sync server";