Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, pkg-config 2, libjack2, alsa-lib, libpulseaudio 3, faac, lame, libogg, libopus, libvorbis, libsamplerate 4}: 5 6stdenv.mkDerivation rec { 7 pname = "darkice"; 8 version = "1.4"; 9 10 src = fetchurl { 11 url = "https://github.com/rafael2k/darkice/releases/download/v${version}/darkice-${version}.tar.gz"; 12 sha256 = "05yq7lggxygrkd76yiqby3msrgdn082p0qlvmzzv9xbw8hmyra76"; 13 }; 14 15 nativeBuildInputs = [ pkg-config ]; 16 buildInputs = [ 17 libopus libvorbis libogg libpulseaudio alsa-lib libsamplerate libjack2 lame 18 ]; 19 20 env.NIX_CFLAGS_COMPILE = "-fpermissive"; 21 22 configureFlags = [ 23 "--with-faac-prefix=${faac}" 24 "--with-lame-prefix=${lame.lib}" 25 ]; 26 27 patches = [ ./fix-undeclared-memmove.patch ]; 28 29 enableParallelBuilding = true; 30 31 meta = { 32 homepage = "http://darkice.org/"; 33 description = "Live audio streamer"; 34 license = lib.licenses.gpl3; 35 maintainers = with lib.maintainers; [ ikervagyok ]; 36 }; 37}