summary refs log tree commit diff
path: root/pkgs/servers/shairport-sync/default.nix
blob: 16705433084247b0227ff2540a729eaff6689dd3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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;
  };
}