nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 37 lines 942 B view raw
1{ lib, stdenv, fetchurl, autoreconfHook 2, mp4v2Support ? true, mp4v2 ? null 3, drmSupport ? false # Digital Radio Mondiale 4}: 5 6assert mp4v2Support -> (mp4v2 != null); 7 8with lib; 9stdenv.mkDerivation rec { 10 pname = "faac"; 11 version = "1.30"; 12 13 src = fetchurl { 14 url = "mirror://sourceforge/faac/${pname}-${builtins.replaceStrings ["."] ["_"] version}.tar.gz"; 15 sha256 = "1lmj0dib3mjp84jhxc5ddvydkzzhb0gfrdh3ikcidjlcb378ghxd"; 16 }; 17 18 configureFlags = [ ] 19 ++ optional mp4v2Support "--with-external-mp4v2" 20 ++ optional drmSupport "--enable-drm"; 21 22 hardeningDisable = [ "format" ]; 23 24 nativeBuildInputs = [ autoreconfHook ]; 25 26 buildInputs = [ ] 27 ++ optional mp4v2Support mp4v2; 28 29 enableParallelBuilding = true; 30 31 meta = { 32 description = "Open source MPEG-4 and MPEG-2 AAC encoder"; 33 license = licenses.unfreeRedistributable; 34 maintainers = with maintainers; [ codyopel ]; 35 platforms = platforms.all; 36 }; 37}