2021-06-10 03:57:09 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, openssl, avahi, alsa-lib
|
2021-01-19 06:50:56 +00:00
|
|
|
, libdaemon, popt, pkg-config, libconfig, libpulseaudio, soxr }:
|
2015-05-01 15:54:40 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-12-04 23:13:21 +00:00
|
|
|
version = "3.3.7";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "shairport-sync";
|
2015-05-01 15:54:40 +01:00
|
|
|
|
2015-07-07 13:09:38 +01:00
|
|
|
src = fetchFromGitHub {
|
2020-12-04 23:13:21 +00:00
|
|
|
sha256 = "110k196y62zy6cmdvcnf74iamqj7jq0ybnqh1q1irjak81s3yz12";
|
2015-07-07 13:09:38 +01:00
|
|
|
rev = version;
|
|
|
|
repo = "shairport-sync";
|
|
|
|
owner = "mikebrady";
|
2015-05-01 15:54:40 +01:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2017-07-30 16:14:46 +01:00
|
|
|
|
2015-05-01 15:54:40 +01:00
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
avahi
|
2021-06-10 03:57:09 +01:00
|
|
|
alsa-lib
|
2015-05-01 15:54:40 +01:00
|
|
|
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"
|
2019-05-08 11:03:26 +01:00
|
|
|
"--sysconfdir=/etc"
|
2018-07-25 22:44:21 +01:00
|
|
|
];
|
2015-05-01 15:54:40 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with 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;
|
|
|
|
};
|
|
|
|
}
|