Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-18.03 29 lines 809 B view raw
1{ stdenv, fetchurl, fetchpatch 2, fixedPoint ? false, withCustomModes ? true }: 3 4let 5 version = "1.2.1"; 6in 7stdenv.mkDerivation rec { 8 name = "libopus-${version}"; 9 10 src = fetchurl { 11 url = "https://archive.mozilla.org/pub/opus/opus-${version}.tar.gz"; 12 sha256 = "0ch7yzgg4bn1g36bpjsfrgs4n19c84d7wpdida6yzifrrhwx7byg"; 13 }; 14 15 outputs = [ "out" "dev" ]; 16 17 configureFlags = stdenv.lib.optional fixedPoint "--enable-fixed-point" 18 ++ stdenv.lib.optional withCustomModes "--enable-custom-modes"; 19 20 doCheck = true; 21 22 meta = with stdenv.lib; { 23 description = "Open, royalty-free, highly versatile audio codec"; 24 license = stdenv.lib.licenses.bsd3; 25 homepage = http://www.opus-codec.org/; 26 platforms = platforms.unix; 27 maintainers = with maintainers; [ wkennington ]; 28 }; 29}