lol
at 16.09-beta 28 lines 799 B view raw
1{ stdenv, fetchurl, fixedPoint ? false, withCustomModes ? true }: 2 3let 4 version = "1.1.2"; 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 = "1z87x5c5x951lhnm70iqr2gqn15wns5cqsw8nnkvl48jwdw00a8f"; 12 }; 13 14 outputs = [ "out" "dev" ]; 15 16 configureFlags = stdenv.lib.optional fixedPoint "--enable-fixed-point" 17 ++ stdenv.lib.optional withCustomModes "--enable-custom-modes"; 18 19 doCheck = true; 20 21 meta = with stdenv.lib; { 22 description = "Open, royalty-free, highly versatile audio codec"; 23 license = stdenv.lib.licenses.bsd3; 24 homepage = http://www.opus-codec.org/; 25 platforms = platforms.unix; 26 maintainers = with maintainers; [ wkennington ]; 27 }; 28}