From 32c25b4f1d09fcb08b9ef0a409243c3da5db1101 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Wed, 8 May 2019 12:03:26 +0200 Subject: shairport-sync: set sysconfdir to /etc/ 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. --- pkgs/servers/shairport-sync/default.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'pkgs/servers') diff --git a/pkgs/servers/shairport-sync/default.nix b/pkgs/servers/shairport-sync/default.nix index aaeb810eca0b..27b4a5123462 100644 --- a/pkgs/servers/shairport-sync/default.nix +++ b/pkgs/servers/shairport-sync/default.nix @@ -31,6 +31,7 @@ stdenv.mkDerivation rec { "--with-alsa" "--with-pipe" "--with-pa" "--with-stdout" "--with-avahi" "--with-ssl=openssl" "--with-soxr" "--without-configfiles" + "--sysconfdir=/etc" ]; meta = with stdenv.lib; { -- cgit 1.4.1