nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 51 lines 970 B view raw
1{ 2 lib, 3 rustPlatform, 4 anki, 5 6 openssl, 7 pkg-config, 8 buildPackages, 9}: 10 11rustPlatform.buildRustPackage { 12 pname = "anki-sync-server"; 13 inherit (anki) 14 version 15 src 16 cargoDeps 17 patches 18 ; 19 20 # only build sync server 21 cargoBuildFlags = [ 22 "--bin" 23 "anki-sync-server" 24 ]; 25 26 checkFlags = [ 27 # this test is flaky, see https://github.com/ankitects/anki/issues/3619 28 # also remove from anki when removing this 29 "--skip=deckconfig::update::test::should_keep_at_least_one_remaining_relearning_step" 30 ]; 31 32 nativeBuildInputs = [ 33 pkg-config 34 ]; 35 36 buildInputs = [ 37 openssl 38 ]; 39 40 env.PROTOC = lib.getExe buildPackages.protobuf; 41 42 __darwinAllowLocalNetworking = true; 43 44 meta = { 45 description = "Standalone official anki sync server"; 46 homepage = "https://apps.ankiweb.net"; 47 license = with lib.licenses; [ agpl3Plus ]; 48 maintainers = with lib.maintainers; [ martinetd ]; 49 mainProgram = "anki-sync-server"; 50 }; 51}