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