2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, version, src
|
2020-04-24 23:36:52 +00:00
|
|
|
, liboggSupport ? true, libogg ? null # if disabled only the library will be built
|
|
|
|
, prePatch ? ""
|
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
|
|
|
|
# The celt codec has been deprecated and is now a part of the opus codec
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "celt";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
inherit src;
|
|
|
|
|
|
|
|
inherit prePatch;
|
|
|
|
|
|
|
|
buildInputs = []
|
2021-02-05 17:12:51 +00:00
|
|
|
++ lib.optional liboggSupport libogg;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
doCheck = false; # fails
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Ultra-low delay audio codec";
|
2022-02-10 20:34:41 +00:00
|
|
|
homepage = "https://gitlab.xiph.org/xiph/celt"; # http://www.celt-codec.org/ is gone
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ codyopel raskin ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|