1{ stdenv, fetchurl
2, fixedPoint ? false, withCustomModes ? true }:
3
4let
5 version = "1.3";
6in
7stdenv.mkDerivation rec {
8 name = "libopus-${version}";
9
10 src = fetchurl {
11 url = "https://archive.mozilla.org/pub/opus/opus-${version}.tar.gz";
12 sha256 = "0l651n19h0vhc0sn6w2c95hgqks1i8m4b3j04ncaznzjznp6jgag";
13 };
14
15 outputs = [ "out" "dev" ];
16
17 configureFlags = stdenv.lib.optional fixedPoint "--enable-fixed-point"
18 ++ stdenv.lib.optional withCustomModes "--enable-custom-modes";
19
20 doCheck = true;
21
22 meta = with stdenv.lib; {
23 description = "Open, royalty-free, highly versatile audio codec";
24 license = stdenv.lib.licenses.bsd3;
25 homepage = http://www.opus-codec.org/;
26 platforms = platforms.unix;
27 };
28}