3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/libopus/default.nix

27 lines
752 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl
, fixedPoint ? false, withCustomModes ? true }:
2021-07-17 18:56:23 +01:00
stdenv.mkDerivation rec {
2019-08-13 22:52:01 +01:00
pname = "libopus";
2021-07-17 18:56:23 +01:00
version = "1.3.1";
src = fetchurl {
url = "https://archive.mozilla.org/pub/opus/opus-${version}.tar.gz";
sha256 = "17gz8kxs4i7icsc1gj713gadiapyklynlwqlf0ai98dj4lg8xdb5";
};
outputs = [ "out" "dev" ];
2015-10-08 10:25:09 +01:00
configureFlags = lib.optional fixedPoint "--enable-fixed-point"
++ lib.optional withCustomModes "--enable-custom-modes";
doCheck = !stdenv.isi686; # 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 18:59:41 +01:00
platforms = platforms.all;
};
}