2015-10-23 14:04:23 +02:00
|
|
|
{ stdenv, buildEnv, fetchurl, alsaLib, faac, libjack2, lame, libogg, libopus, libpulseaudio, libsamplerate, libvorbis }:
|
2015-05-21 19:16:26 +02:00
|
|
|
|
2015-10-23 14:04:23 +02:00
|
|
|
let
|
|
|
|
oggEnv = buildEnv {
|
|
|
|
name = "env-darkice-ogg";
|
|
|
|
paths = [
|
|
|
|
libopus libvorbis libogg
|
|
|
|
];
|
|
|
|
};
|
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}";
|
|
|
|
version = "1.2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/darkice/${version}/darkice-${version}.tar.gz";
|
|
|
|
sha256 = "0m5jzmja7a9x15zl1634bhxrg3rccph9rkar0rmz6wlw5nzakyxk";
|
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-alsa-prefix=${alsaLib}"
|
|
|
|
"--with-faac-prefix=${faac}"
|
2015-06-27 09:17:52 +02:00
|
|
|
"--with-jack-prefix=${libjack2}"
|
2015-05-21 19:16:26 +02:00
|
|
|
"--with-lame-prefix=${lame}"
|
2015-10-23 14:04:23 +02:00
|
|
|
"--with-opus-prefix=${oggEnv}"
|
2015-05-21 19:16:26 +02:00
|
|
|
"--with-pulseaudio-prefix=${libpulseaudio}"
|
|
|
|
"--with-samplerate-prefix=${libsamplerate}"
|
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
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://darkice.org/;
|
|
|
|
description = "Live audio streamer";
|
|
|
|
license = stdenv.lib.licenses.gpl3;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ ikervagyok ];
|
|
|
|
};
|
|
|
|
}
|