12 rustPlatform.buildRustPackage {
13 pname = "anki-sync-server";
14 inherit (anki) version src cargoLock;
17 ./patches/Cargo.lock-update-time-for-rust-1.80.patch
20 # only build sync server
27 # these two tests are flaky, see https://github.com/ankitects/anki/issues/3353
28 # Also removed from anki when removing this.
29 "--skip=media::check::test::unicode_normalization"
30 "--skip=scheduler::answering::test::state_application"
33 nativeBuildInputs = [ protobuf pkg-config ];
37 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
38 darwin.apple_sdk.frameworks.Security
39 darwin.apple_sdk.frameworks.SystemConfiguration
42 env.PROTOC = lib.getExe protobuf;
45 description = "Standalone official anki sync server";
46 homepage = "https://apps.ankiweb.net";
47 license = with licenses; [ agpl3Plus ];
48 maintainers = with maintainers; [ martinetd ];
49 mainProgram = "anki-sync-server";