2017-04-16 10:25:07 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig
|
2016-04-24 16:49:52 +02:00
|
|
|
, libjack2, alsaLib, libpulseaudio
|
|
|
|
, faac, lame, libogg, libopus, libvorbis, libsamplerate
|
|
|
|
}:
|
2015-05-21 19:16:26 +02:00
|
|
|
|
2016-09-12 10:30:43 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "darkice";
|
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
|
|
|
};
|
|
|
|
|
2016-09-12 10:30:43 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [
|
|
|
|
libopus libvorbis libogg libpulseaudio alsaLib libsamplerate libjack2 lame
|
|
|
|
];
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-fpermissive";
|
|
|
|
|
2015-05-21 19:16:26 +02:00
|
|
|
configureFlags = [
|
|
|
|
"--with-faac-prefix=${faac}"
|
2016-09-12 10:30:43 +02:00
|
|
|
"--with-lame-prefix=${lame.lib}"
|
2015-05-21 19:16:26 +02:00
|
|
|
];
|
|
|
|
|
2016-08-23 15:47:53 +02:00
|
|
|
patches = [ ./fix-undeclared-memmove.patch ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2015-05-21 19:16:26 +02:00
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://darkice.org/";
|
2015-05-21 19:16:26 +02:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|