10 withCustomModes ? true,
11 withIntrinsics ? stdenv.hostPlatform.isAarch || stdenv.hostPlatform.isx86,
19 stdenv.mkDerivation (finalAttrs: {
24 url = "https://downloads.xiph.org/releases/opus/opus-${finalAttrs.version}.tar.gz";
25 hash = "sha256-ZcHS94ufL7IAgsOMvkfJUa1YOTRYduRpQWEu6H+afOE=";
29 # Some tests time out easily on slower machines
49 (lib.mesonBool "fixed-point" fixedPoint)
50 (lib.mesonBool "custom-modes" withCustomModes)
51 (lib.mesonEnable "intrinsics" withIntrinsics)
52 (lib.mesonEnable "rtcd" (withIntrinsics || withAsm))
53 (lib.mesonEnable "asm" withAsm)
54 (lib.mesonEnable "docs" false)
57 doCheck = !stdenv.hostPlatform.isi686 && !stdenv.hostPlatform.isAarch32; # test_unit_LPC_inv_pred_gain fails
60 updateScript = gitUpdater {
61 url = "https://gitlab.xiph.org/xiph/opus.git";
66 inherit ffmpeg-headless;
68 pkg-config = testers.hasPkgConfigModules {
69 package = finalAttrs.finalPackage;
70 moduleNames = [ "opus" ];
76 description = "Open, royalty-free, highly versatile audio codec";
77 homepage = "https://opus-codec.org/";
78 changelog = "https://gitlab.xiph.org/xiph/opus/-/releases/v${finalAttrs.version}";
79 license = lib.licenses.bsd3;
80 platforms = lib.platforms.all;
81 maintainers = with lib.maintainers; [ getchoo jopejoe1 ];