1 { lib, stdenv, fetchurl, pkg-config
2 , libjack2, alsa-lib, libpulseaudio
3 , faac, lame, libogg, libopus, libvorbis, libsamplerate
6 stdenv.mkDerivation rec {
11 url = "https://github.com/rafael2k/darkice/releases/download/v${version}/darkice-${version}.tar.gz";
12 sha256 = "sha256-GLTEVzp8z+CcEJTrV5gVniqYkhBupi11OTP28qdGBY4=";
15 nativeBuildInputs = [ pkg-config ];
17 libopus libvorbis libogg libpulseaudio alsa-lib libsamplerate libjack2 lame
20 env.NIX_CFLAGS_COMPILE = "-fpermissive";
23 "--with-faac-prefix=${faac}"
24 "--with-lame-prefix=${lame.lib}"
27 patches = [ ./fix-undeclared-memmove.patch ];
29 enableParallelBuilding = true;
32 homepage = "http://darkice.org/";
33 description = "Live audio streamer";
34 license = lib.licenses.gpl3;
35 maintainers = with lib.maintainers; [ ikervagyok ];