python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / libopus / default.nix
blob7c563e081d018058d54a124e5da1b170a5f3980f
1 { lib, stdenv, fetchurl
2 , fixedPoint ? false, withCustomModes ? true }:
4 stdenv.mkDerivation rec {
5   pname = "libopus";
6   version = "1.3.1";
8   src = fetchurl {
9     url = "mirror://mozilla/opus/opus-${version}.tar.gz";
10     sha256 = "17gz8kxs4i7icsc1gj713gadiapyklynlwqlf0ai98dj4lg8xdb5";
11   };
13   outputs = [ "out" "dev" ];
15   configureFlags = lib.optional fixedPoint "--enable-fixed-point"
16                 ++ lib.optional withCustomModes "--enable-custom-modes";
18   doCheck = !stdenv.isi686 && !stdenv.isAarch32; # test_unit_LPC_inv_pred_gain fails
20   meta = with lib; {
21     description = "Open, royalty-free, highly versatile audio codec";
22     license = lib.licenses.bsd3;
23     homepage = "https://www.opus-codec.org/";
24     platforms = platforms.all;
25   };