From 6d219ff22236be585a2cac1db67003811e1d659e Mon Sep 17 00:00:00 2001 From: Tom Hunger Date: Fri, 1 May 2015 15:54:40 +0100 Subject: [PATCH] Add shairport sync binary. This binary allows to run a local airtunes server. --- pkgs/servers/shairport-sync/default.nix | 38 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 40 insertions(+) create mode 100644 pkgs/servers/shairport-sync/default.nix diff --git a/pkgs/servers/shairport-sync/default.nix b/pkgs/servers/shairport-sync/default.nix new file mode 100644 index 000000000000..167054330842 --- /dev/null +++ b/pkgs/servers/shairport-sync/default.nix @@ -0,0 +1,38 @@ +{ stdenv, fetchurl, openssl, avahi, alsaLib, libdaemon, autoconf, automake, libtool, popt, unzip, pkgconfig, libconfig, pulseaudio }: + +stdenv.mkDerivation rec { + version = "2.3.0"; + name = "shairport-sync-${version}"; + + src = fetchurl { + url = "https://github.com/mikebrady/shairport-sync/archive/${version}.zip"; + sha256 = "1kslif2ifrn0frvi39d44wpn53sjahwq0xjc0hd98ycf3xbcgndg"; + }; + + buildInputs = [ + openssl + avahi + alsaLib + libdaemon + autoconf + automake + pkgconfig + libtool + popt + unzip + libconfig + pulseaudio + ]; + + enableParallelBuilding = true; + + preConfigure = "autoreconf -vfi"; + configureFlags = "--with-alsa --with-avahi --with-ssl=openssl --without-initscript --with-pulseaudio"; + + meta = with stdenv.lib; { + homepage = https://github.com/mikebrady/shairport-sync; + description = "Airtunes server and emulator with multi-room capabilities"; + license = licenses.mit; + platforms = platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9936330936c2..c4ae56d62e02 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8775,6 +8775,8 @@ let samba_light = samba4_light; + shairport-sync = callPackage ../servers/shairport-sync { }; + serfdom = callPackage ../servers/serfdom { }; seyren = callPackage ../servers/monitoring/seyren { };