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