1 { lib, stdenv, fetchurl, autoreconfHook
2 , mp4v2Support ? true, mp4v2 ? null
3 , drmSupport ? false # Digital Radio Mondiale
6 assert mp4v2Support -> (mp4v2 != null);
8 stdenv.mkDerivation rec {
13 url = "mirror://sourceforge/faac/${pname}-${builtins.replaceStrings ["."] ["_"] version}.tar.gz";
14 sha256 = "1lmj0dib3mjp84jhxc5ddvydkzzhb0gfrdh3ikcidjlcb378ghxd";
18 ++ lib.optional mp4v2Support "--with-external-mp4v2"
19 ++ lib.optional drmSupport "--enable-drm";
21 hardeningDisable = [ "format" ];
23 nativeBuildInputs = [ autoreconfHook ];
26 ++ lib.optional mp4v2Support mp4v2;
28 enableParallelBuilding = true;
31 description = "Open source MPEG-4 and MPEG-2 AAC encoder";
32 license = licenses.unfreeRedistributable;
33 maintainers = with maintainers; [ codyopel ];
34 platforms = platforms.all;