forked from mirrors/nixpkgs
32c25b4f1d
since 2.8.5, shairport-sync uses the directory path sysconfdir to determine where to place the configuration file shairport-sync.conf. This led to shairport-sync complaining at startup: > configuration file name "/nix/store/i8gb0hsb2zczdl8g1h73pbcb952585l9-shairport-sync-3.2.2/etc/shairport-sync.conf" can not be resolved. Looking for a configuration file there doesn't make much sense, as we'd have to include configuration in the shairport-sync derivation itself. By setting sysconfdir to /etc/, shairport-sync will try to read its configuration from /etc/shairport-sync.conf, which is a more sane default.
45 lines
1 KiB
Nix
45 lines
1 KiB
Nix
{ stdenv, fetchFromGitHub, autoreconfHook, openssl, avahi, alsaLib
|
|
, libdaemon, popt, pkgconfig, libconfig, libpulseaudio, soxr }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "3.2.2";
|
|
name = "shairport-sync-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
sha256 = "1cw6wybnh4sp3llzmam0zpd6fcmr9y6ykrirzygckp2iaglcqbcv";
|
|
rev = version;
|
|
repo = "shairport-sync";
|
|
owner = "mikebrady";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
|
|
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"
|
|
];
|
|
|
|
meta = with stdenv.lib; {
|
|
inherit (src.meta) homepage;
|
|
description = "Airtunes server and emulator with multi-room capabilities";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ lnl7 ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|