nixpkgs/pkgs/development/libraries/libopus/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
758 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl
, fixedPoint ? false, withCustomModes ? true }:
2021-07-17 20:56:23 +03:00
stdenv.mkDerivation rec {
2019-08-14 00:52:01 +03:00
pname = "libopus";
2021-07-17 20:56:23 +03:00
version = "1.3.1";
src = fetchurl {
url = "mirror://mozilla/opus/opus-${version}.tar.gz";
sha256 = "17gz8kxs4i7icsc1gj713gadiapyklynlwqlf0ai98dj4lg8xdb5";
};
outputs = [ "out" "dev" ];
2015-10-08 12:25:09 +03:00
configureFlags = lib.optional fixedPoint "--enable-fixed-point"
++ lib.optional withCustomModes "--enable-custom-modes";
2021-08-12 18:00:15 +03:00
doCheck = !stdenv.isi686 && !stdenv.isAarch32; # test_unit_LPC_inv_pred_gain fails
meta = with lib; {
description = "Open, royalty-free, highly versatile audio codec";
license = lib.licenses.bsd3;
homepage = "https://www.opus-codec.org/";
2021-04-27 20:59:41 +03:00
platforms = platforms.all;
};
}