1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/audio/darkice/default.nix

38 lines
932 B
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig
, libjack2, alsaLib, 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";
2016-08-23 14:47:53 +01:00
version = "1.3";
2015-05-21 18:16:26 +01:00
src = fetchurl {
url = "mirror://sourceforge/darkice/${version}/darkice-${version}.tar.gz";
2016-08-23 14:47:53 +01:00
sha256 = "1rlxds7ssq7nk2in4s46xws7xy9ylxsqgcz85hxjgh17lsm0y39c";
2015-05-21 18:16:26 +01:00
};
2016-09-12 09:30:43 +01:00
nativeBuildInputs = [ pkgconfig ];
buildInputs = [
libopus libvorbis libogg libpulseaudio alsaLib libsamplerate libjack2 lame
];
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";
license = stdenv.lib.licenses.gpl3;
maintainers = with stdenv.lib.maintainers; [ ikervagyok fpletz ];
2015-05-21 18:16:26 +01:00
};
}