nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 17.09 36 lines 942 B view raw
1{ stdenv, fetchurl, fetchpatch, autoreconfHook 2, mp4v2Support ? true, mp4v2 ? null 3, drmSupport ? false # Digital Radio Mondiale 4}: 5 6assert mp4v2Support -> (mp4v2 != null); 7 8with stdenv.lib; 9stdenv.mkDerivation rec { 10 name = "faac-${version}"; 11 version = "1.29.3"; 12 13 src = fetchurl { 14 url = "mirror://sourceforge/faac/${name}.tar.gz"; 15 sha256 = "0gssrz2vq52mj8x2hvdqc9bwkp64s4f4g7yj7ac6dwxs8dw8kwnf"; 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 meta = { 30 description = "Open source MPEG-4 and MPEG-2 AAC encoder"; 31 homepage = http://www.audiocoding.com/faac.html; 32 license = licenses.unfreeRedistributable; 33 maintainers = with maintainers; [ codyopel ]; 34 platforms = platforms.all; 35 }; 36}