2016-04-24 16:49:52 +02:00
|
|
|
{ stdenv, buildEnv, fetchurl
|
|
|
|
, libjack2, alsaLib, libpulseaudio
|
|
|
|
, faac, lame, libogg, libopus, libvorbis, libsamplerate
|
|
|
|
}:
|
2015-05-21 19:16:26 +02:00
|
|
|
|
2015-10-23 14:04:23 +02:00
|
|
|
let
|
|
|
|
oggEnv = buildEnv {
|
|
|
|
name = "env-darkice-ogg";
|
|
|
|
paths = [
|
2016-04-24 16:49:52 +02:00
|
|
|
libopus.dev libopus libvorbis.dev libvorbis libogg.dev libogg
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
darkiceEnv = buildEnv {
|
|
|
|
name = "env-darkice";
|
|
|
|
paths = [
|
|
|
|
lame.out lame.lib libpulseaudio libpulseaudio.dev alsaLib alsaLib.dev libsamplerate.out libsamplerate.dev
|
2015-10-23 14:04:23 +02:00
|
|
|
];
|
|
|
|
};
|
2015-05-21 19:16:26 +02:00
|
|
|
|
2015-10-23 14:04:23 +02:00
|
|
|
in stdenv.mkDerivation rec {
|
2015-05-21 19:16:26 +02:00
|
|
|
name = "darkice-${version}";
|
2016-08-23 15:47:53 +02:00
|
|
|
version = "1.3";
|
2015-05-21 19:16:26 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/darkice/${version}/darkice-${version}.tar.gz";
|
2016-08-23 15:47:53 +02:00
|
|
|
sha256 = "1rlxds7ssq7nk2in4s46xws7xy9ylxsqgcz85hxjgh17lsm0y39c";
|
2015-05-21 19:16:26 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = [
|
2016-04-24 16:49:52 +02:00
|
|
|
"--with-alsa-prefix=${darkiceEnv}"
|
2015-05-21 19:16:26 +02:00
|
|
|
"--with-faac-prefix=${faac}"
|
2015-06-27 09:17:52 +02:00
|
|
|
"--with-jack-prefix=${libjack2}"
|
2016-04-24 16:49:52 +02:00
|
|
|
"--with-lame-prefix=${darkiceEnv}"
|
2015-10-23 14:04:23 +02:00
|
|
|
"--with-opus-prefix=${oggEnv}"
|
2016-04-24 16:49:52 +02:00
|
|
|
"--with-pulseaudio-prefix=${darkiceEnv}"
|
|
|
|
"--with-samplerate-prefix=${darkiceEnv}"
|
2015-10-23 14:04:23 +02:00
|
|
|
"--with-vorbis-prefix=${oggEnv}"
|
2015-05-21 19:16:26 +02:00
|
|
|
# "--with-aacplus-prefix=${aacplus}" ### missing: aacplus
|
|
|
|
# "--with-twolame-prefix=${twolame}" ### missing: twolame
|
|
|
|
];
|
|
|
|
|
2016-08-23 15:47:53 +02:00
|
|
|
patches = [ ./fix-undeclared-memmove.patch ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2015-05-21 19:16:26 +02:00
|
|
|
meta = {
|
|
|
|
homepage = http://darkice.org/;
|
|
|
|
description = "Live audio streamer";
|
|
|
|
license = stdenv.lib.licenses.gpl3;
|
2016-04-24 16:49:52 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ ikervagyok fpletz ];
|
2015-05-21 19:16:26 +02:00
|
|
|
};
|
|
|
|
}
|