at v192 26 lines 767 B view raw
1{ stdenv, fetchurl, fixedPoint ? false, withCustomModes ? true }: 2 3let 4 version = "1.1"; 5in 6stdenv.mkDerivation rec { 7 name = "libopus-${version}"; 8 9 src = fetchurl { 10 url = "http://downloads.xiph.org/releases/opus/opus-${version}.tar.gz"; 11 sha256 = "158xprn2086arvdib3vbbygz7z6jqkw2nci7nlywzzwallap0wmr"; 12 }; 13 14 configureFlags = stdenv.lib.optional fixedPoint "--enable-fixed-point" 15 ++ stdenv.lib.optional withCustomModes "--enable-custom-modes"; 16 17 doCheck = true; 18 19 meta = with stdenv.lib; { 20 description = "Open, royalty-free, highly versatile audio codec"; 21 license = stdenv.lib.licenses.bsd3; 22 homepage = http://www.opus-codec.org/; 23 platforms = platforms.unix; 24 maintainers = with maintainers; [ wkennington ]; 25 }; 26}