3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/audio/darkice/default.nix

38 lines
953 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, pkg-config
, libjack2, alsa-lib, libpulseaudio
, faac, lame, libogg, libopus, libvorbis, libsamplerate
}:
2015-05-21 18:16:26 +01:00
2016-09-12 09:30:43 +01:00
stdenv.mkDerivation rec {
pname = "darkice";
2021-07-28 19:43:05 +01:00
version = "1.4";
2015-05-21 18:16:26 +01:00
src = fetchurl {
2021-07-28 19:43:05 +01:00
url = "https://github.com/rafael2k/darkice/releases/download/v${version}/darkice-${version}.tar.gz";
sha256 = "05yq7lggxygrkd76yiqby3msrgdn082p0qlvmzzv9xbw8hmyra76";
2015-05-21 18:16:26 +01:00
};
nativeBuildInputs = [ pkg-config ];
2016-09-12 09:30:43 +01:00
buildInputs = [
libopus libvorbis libogg libpulseaudio alsa-lib libsamplerate libjack2 lame
2016-09-12 09:30:43 +01:00
];
NIX_CFLAGS_COMPILE = "-fpermissive";
2015-05-21 18:16:26 +01:00
configureFlags = [
"--with-faac-prefix=${faac}"
2016-09-12 09:30:43 +01:00
"--with-lame-prefix=${lame.lib}"
2015-05-21 18:16:26 +01:00
];
2016-08-23 14:47:53 +01:00
patches = [ ./fix-undeclared-memmove.patch ];
enableParallelBuilding = true;
2015-05-21 18:16:26 +01:00
meta = {
homepage = "http://darkice.org/";
2015-05-21 18:16:26 +01:00
description = "Live audio streamer";
2021-01-15 09:19:50 +00:00
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ ikervagyok fpletz ];
2015-05-21 18:16:26 +01:00
};
}