nixpkgs-suyu/pkgs/tools/audio/darkice/default.nix

50 lines
1.4 KiB
Nix
Raw Normal View History

{ stdenv, buildEnv, fetchurl
, libjack2, alsaLib, libpulseaudio
, faac, lame, libogg, libopus, libvorbis, libsamplerate
}:
2015-05-21 19:16:26 +02:00
let
oggEnv = buildEnv {
name = "env-darkice-ogg";
paths = [
libopus.dev libopus libvorbis.dev libvorbis libogg.dev libogg
];
};
darkiceEnv = buildEnv {
name = "env-darkice";
paths = [
lame.out lame.lib libpulseaudio libpulseaudio.dev alsaLib alsaLib.dev libsamplerate.out libsamplerate.dev
];
};
2015-05-21 19:16:26 +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=${darkiceEnv}"
2015-05-21 19:16:26 +02:00
"--with-faac-prefix=${faac}"
"--with-jack-prefix=${libjack2}"
"--with-lame-prefix=${darkiceEnv}"
"--with-opus-prefix=${oggEnv}"
"--with-pulseaudio-prefix=${darkiceEnv}"
"--with-samplerate-prefix=${darkiceEnv}"
"--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 fpletz ];
2015-05-21 19:16:26 +02:00
};
}