2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, openssl, avahi, alsaLib
|
2021-02-05 17:12:51 +00:00
|
|
|
, libdaemon, popt, pkg-config, libconfig, libpulseaudio, soxr }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-12-07 07:45:13 +00:00
|
|
|
version = "3.3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "shairport-sync";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-12-07 07:45:13 +00:00
|
|
|
sha256 = "110k196y62zy6cmdvcnf74iamqj7jq0ybnqh1q1irjak81s3yz12";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = version;
|
|
|
|
repo = "shairport-sync";
|
|
|
|
owner = "mikebrady";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
avahi
|
|
|
|
alsaLib
|
|
|
|
libdaemon
|
|
|
|
popt
|
|
|
|
libconfig
|
|
|
|
libpulseaudio
|
|
|
|
soxr
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-alsa" "--with-pipe" "--with-pa" "--with-stdout"
|
|
|
|
"--with-avahi" "--with-ssl=openssl" "--with-soxr"
|
|
|
|
"--without-configfiles"
|
|
|
|
"--sysconfdir=/etc"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit (src.meta) homepage;
|
|
|
|
description = "Airtunes server and emulator with multi-room capabilities";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ lnl7 ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|