2015-07-07 13:09:38 +01:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, openssl, avahi, alsaLib
|
|
|
|
, libdaemon, popt, pkgconfig, libconfig, libpulseaudio, soxr }:
|
2015-05-01 15:54:40 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-08-16 21:20:45 +01:00
|
|
|
version = "3.2.1";
|
2015-05-01 15:54:40 +01:00
|
|
|
name = "shairport-sync-${version}";
|
|
|
|
|
2015-07-07 13:09:38 +01:00
|
|
|
src = fetchFromGitHub {
|
2018-08-16 21:20:45 +01:00
|
|
|
sha256 = "1g9pd00c1x66cbp4gls93pvnrwbzl37q7p8jaag3h5d6f1431i51";
|
2015-07-07 13:09:38 +01:00
|
|
|
rev = version;
|
|
|
|
repo = "shairport-sync";
|
|
|
|
owner = "mikebrady";
|
2015-05-01 15:54:40 +01:00
|
|
|
};
|
|
|
|
|
2017-07-30 16:14:46 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
|
|
|
2015-05-01 15:54:40 +01:00
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
avahi
|
|
|
|
alsaLib
|
|
|
|
libdaemon
|
|
|
|
popt
|
|
|
|
libconfig
|
2015-05-27 20:42:15 +01:00
|
|
|
libpulseaudio
|
2015-07-07 13:09:38 +01:00
|
|
|
soxr
|
2015-05-01 15:54:40 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2018-07-25 22:44:21 +01:00
|
|
|
configureFlags = [
|
2018-09-26 17:07:06 +01:00
|
|
|
"--with-alsa" "--with-pipe" "--with-pa" "--with-stdout"
|
2018-07-25 22:44:21 +01:00
|
|
|
"--with-avahi" "--with-ssl=openssl" "--with-soxr"
|
2018-09-26 17:07:06 +01:00
|
|
|
"--without-configfiles"
|
2018-07-25 22:44:21 +01:00
|
|
|
];
|
2015-05-01 15:54:40 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2015-07-07 13:09:38 +01:00
|
|
|
inherit (src.meta) homepage;
|
2015-05-01 15:54:40 +01:00
|
|
|
description = "Airtunes server and emulator with multi-room capabilities";
|
|
|
|
license = licenses.mit;
|
2017-07-30 16:14:46 +01:00
|
|
|
maintainers = with maintainers; [ lnl7 ];
|
2015-05-01 15:54:40 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|