567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
42 lines
750 B
Nix
42 lines
750 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
version,
|
|
src,
|
|
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;
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
];
|
|
|
|
inherit prePatch;
|
|
|
|
buildInputs = [ ] ++ lib.optional liboggSupport libogg;
|
|
|
|
doCheck = false; # fails
|
|
|
|
meta = {
|
|
description = "Ultra-low delay audio codec";
|
|
homepage = "https://gitlab.xiph.org/xiph/celt"; # http://www.celt-codec.org/ is gone
|
|
license = lib.licenses.bsd2;
|
|
maintainers = with lib.maintainers; [
|
|
codyopel
|
|
raskin
|
|
];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|