2021-01-17 09:17:16 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config
|
2021-06-10 02:57:09 +00:00
|
|
|
, libjack2, alsa-lib, libpulseaudio
|
2016-04-24 14:49:52 +00:00
|
|
|
, faac, lame, libogg, libopus, libvorbis, libsamplerate
|
|
|
|
}:
|
2015-05-21 17:16:26 +00:00
|
|
|
|
2016-09-12 08:30:43 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "darkice";
|
2024-07-01 20:19:51 +00:00
|
|
|
version = "1.5";
|
2015-05-21 17:16:26 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-07-28 18:43:05 +00:00
|
|
|
url = "https://github.com/rafael2k/darkice/releases/download/v${version}/darkice-${version}.tar.gz";
|
2024-07-01 20:19:51 +00:00
|
|
|
sha256 = "sha256-GLTEVzp8z+CcEJTrV5gVniqYkhBupi11OTP28qdGBY4=";
|
2015-05-21 17:16:26 +00:00
|
|
|
};
|
|
|
|
|
2021-01-17 09:17:16 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2016-09-12 08:30:43 +00:00
|
|
|
buildInputs = [
|
2021-06-10 02:57:09 +00:00
|
|
|
libopus libvorbis libogg libpulseaudio alsa-lib libsamplerate libjack2 lame
|
2016-09-12 08:30:43 +00:00
|
|
|
];
|
|
|
|
|
2023-02-19 19:23:32 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-fpermissive";
|
2016-09-12 08:30:43 +00:00
|
|
|
|
2015-05-21 17:16:26 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--with-faac-prefix=${faac}"
|
2016-09-12 08:30:43 +00:00
|
|
|
"--with-lame-prefix=${lame.lib}"
|
2015-05-21 17:16:26 +00:00
|
|
|
];
|
|
|
|
|
2016-08-23 13:47:53 +00:00
|
|
|
patches = [ ./fix-undeclared-memmove.patch ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2015-05-21 17:16:26 +00:00
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://darkice.org/";
|
2015-05-21 17:16:26 +00:00
|
|
|
description = "Live audio streamer";
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.gpl3;
|
2022-08-03 12:13:56 +00:00
|
|
|
maintainers = with lib.maintainers; [ ikervagyok ];
|
2015-05-21 17:16:26 +00:00
|
|
|
};
|
|
|
|
}
|