diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2018-02-21 14:36:41 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-21 14:36:41 +0000 |
commit | a65221e56bf11bd906e080958c4179708f1cbf7b (patch) | |
tree | 04eee3b7fd0f5207cb6e66e468d257a8e251ec82 /pkgs/applications/audio | |
parent | 1e94ef5af39be1e2d1fa98779fd1b8657eaf84e3 (diff) | |
parent | 2b3989f2f0a643319483e74aaaea4f2d626bc6eb (diff) | |
download | nixlib-a65221e56bf11bd906e080958c4179708f1cbf7b.tar nixlib-a65221e56bf11bd906e080958c4179708f1cbf7b.tar.gz nixlib-a65221e56bf11bd906e080958c4179708f1cbf7b.tar.bz2 nixlib-a65221e56bf11bd906e080958c4179708f1cbf7b.tar.lz nixlib-a65221e56bf11bd906e080958c4179708f1cbf7b.tar.xz nixlib-a65221e56bf11bd906e080958c4179708f1cbf7b.tar.zst nixlib-a65221e56bf11bd906e080958c4179708f1cbf7b.zip |
Merge pull request #35245 from mogorman/pulseaudio-dlna
pulseaudio-dlna
Diffstat (limited to 'pkgs/applications/audio')
-rw-r--r-- | pkgs/applications/audio/pulseaudio-dlna/default.nix | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/pkgs/applications/audio/pulseaudio-dlna/default.nix b/pkgs/applications/audio/pulseaudio-dlna/default.nix new file mode 100644 index 000000000000..72af8aff106b --- /dev/null +++ b/pkgs/applications/audio/pulseaudio-dlna/default.nix @@ -0,0 +1,50 @@ +{ fetchFromGitHub, stdenv, pythonPackages +, mp3Support ? true, lame ? null +, opusSupport ? true, opusTools ? null +, faacSupport ? false, faac ? null +, flacSupport ? true, flac ? null +, soxSupport ? true, sox ? null +, vorbisSupport ? true, vorbisTools ? null +}: + +assert mp3Support -> lame != null; +assert opusSupport -> opusTools != null; +assert faacSupport -> faac != null; +assert flacSupport -> flac != null; +assert soxSupport -> sox != null; +assert vorbisSupport -> vorbisTools != null; + +pythonPackages.buildPythonApplication rec { + pname = "pulseaudio-dlna"; + version = "2017-11-01"; + + src = fetchFromGitHub { + owner = "masmu"; + repo = "pulseaudio-dlna"; + rev = "4472928dd23f274193f14289f59daec411023ab0"; + sha256 = "1dfn7036vrq49kxv4an7rayypnm5dlawsf02pfsldw877hzdamqk"; + }; + + # pulseaudio-dlna has no tests + doCheck = false; + + propagatedBuildInputs = with pythonPackages; [ + dbus-python docopt requests setproctitle protobuf psutil futures + chardet notify2 netifaces pyroute2 pygobject2 lxml zeroconf ] + ++ stdenv.lib.optional mp3Support lame + ++ stdenv.lib.optional opusSupport opusTools + ++ stdenv.lib.optional faacSupport faac + ++ stdenv.lib.optional flacSupport flac + ++ stdenv.lib.optional soxSupport sox + ++ stdenv.lib.optional vorbisSupport vorbisTools; + + meta = with stdenv.lib; { + description = "A lightweight streaming server which brings DLNA / UPNP and Chromecast support to PulseAudio and Linux"; + homepage = https://github.com/masmu/pulseaudio-dlna; + + license = licenses.gpl3Plus; + + maintainers = with maintainers; [ mog ]; + platforms = platforms.linux; + }; +} |