Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, pkg-config, libopus }: 2 3stdenv.mkDerivation rec { 4 pname = "libopusenc"; 5 version = "0.2.1"; 6 7 src = fetchurl { 8 url = "mirror://mozilla/opus/libopusenc-${version}.tar.gz"; 9 sha256 = "1ffb0vhlymlsq70pxsjj0ksz77yfm2x0a1x8q50kxmnkm1hxp642"; 10 }; 11 12 outputs = [ "out" "dev" ]; 13 14 doCheck = true; 15 16 nativeBuildInputs = [ pkg-config ]; 17 buildInputs = [ libopus ]; 18 19 meta = with lib; { 20 description = "Library for encoding .opus audio files and live streams"; 21 license = licenses.bsd3; 22 homepage = "https://www.opus-codec.org/"; 23 platforms = platforms.unix; 24 maintainers = with maintainers; [ pmiddend ]; 25 }; 26}