nixpkgs-suyu/pkgs/development/libraries/libopus/default.nix
Martin Wohlert b90bab7d58 libopus: 1.2 -> 1.2.1
> http://opus-codec.org/release/stable/2017/06/26/libopus-1_2_1.html

This Opus 1.2.1 minor release fixes a relatively rare issue where the 1.2 encoder would wrongly assume a signal to be bandlimited to 12 kHz and not encode frequencies between 12 and 20 kHz.
This only happens on a few clips, but it is good to update to avoid a potential loss of quality.

There are no other changes compared to 1.2.
2017-06-28 11:53:05 +02:00

29 lines
809 B
Nix

{ stdenv, fetchurl, fetchpatch
, fixedPoint ? false, withCustomModes ? true }:
let
version = "1.2.1";
in
stdenv.mkDerivation rec {
name = "libopus-${version}";
src = fetchurl {
url = "https://archive.mozilla.org/pub/opus/opus-${version}.tar.gz";
sha256 = "0ch7yzgg4bn1g36bpjsfrgs4n19c84d7wpdida6yzifrrhwx7byg";
};
outputs = [ "out" "dev" ];
configureFlags = stdenv.lib.optional fixedPoint "--enable-fixed-point"
++ stdenv.lib.optional withCustomModes "--enable-custom-modes";
doCheck = true;
meta = with stdenv.lib; {
description = "Open, royalty-free, highly versatile audio codec";
license = stdenv.lib.licenses.bsd3;
homepage = http://www.opus-codec.org/;
platforms = platforms.unix;
maintainers = with maintainers; [ wkennington ];
};
}