@@ -0,0 +1,38 @@
1+{ stdenv, fetchurl, openssl, avahi, alsaLib, libdaemon, autoconf, automake, libtool, popt, unzip, pkgconfig, libconfig, pulseaudio }:
2+
3+stdenv.mkDerivation rec {
4+ version = "2.3.0";
5+ name = "shairport-sync-${version}";
6+
7+ src = fetchurl {
8+ url = "https://github.com/mikebrady/shairport-sync/archive/${version}.zip";
9+ sha256 = "1kslif2ifrn0frvi39d44wpn53sjahwq0xjc0hd98ycf3xbcgndg";
10+ };
11+
12+ buildInputs = [
13+ openssl
14+ avahi
15+ alsaLib
16+ libdaemon
17+ autoconf
18+ automake
19+ pkgconfig
20+ libtool
21+ popt
22+ unzip
23+ libconfig
24+ pulseaudio
25+ ];
26+
27+ enableParallelBuilding = true;
28+
29+ preConfigure = "autoreconf -vfi";
30+ configureFlags = "--with-alsa --with-avahi --with-ssl=openssl --without-initscript --with-pulseaudio";
31+
32+ meta = with stdenv.lib; {
33+ homepage = https://github.com/mikebrady/shairport-sync;
34+ description = "Airtunes server and emulator with multi-room capabilities";
35+ license = licenses.mit;
36+ platforms = platforms.unix;
37+ };
38+}