2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, autoreconfHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, mp4v2Support ? true, mp4v2 ? null
|
|
|
|
, drmSupport ? false # Digital Radio Mondiale
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert mp4v2Support -> (mp4v2 != null);
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "faac";
|
2020-12-25 13:55:36 +00:00
|
|
|
version = "1.30";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-12-25 13:55:36 +00:00
|
|
|
url = "mirror://sourceforge/faac/${pname}-${builtins.replaceStrings ["."] ["_"] version}.tar.gz";
|
|
|
|
sha256 = "1lmj0dib3mjp84jhxc5ddvydkzzhb0gfrdh3ikcidjlcb378ghxd";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = [ ]
|
2023-02-02 18:25:31 +00:00
|
|
|
++ lib.optional mp4v2Support "--with-external-mp4v2"
|
|
|
|
++ lib.optional drmSupport "--enable-drm";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
|
|
|
buildInputs = [ ]
|
2023-02-02 18:25:31 +00:00
|
|
|
++ lib.optional mp4v2Support mp4v2;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Open source MPEG-4 and MPEG-2 AAC encoder";
|
|
|
|
license = licenses.unfreeRedistributable;
|
|
|
|
maintainers = with maintainers; [ codyopel ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|