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.
commit32c25b4f1d09fcb08b9ef0a409243c3da5db1101
authorFlorian Klink <flokli@flokli.de>
dateWed 8 May 2019, 12:03 (8 years ago)
parentf41618a
pkgs/servers/shairport-sync/default.nix+1
@@ -31,6 +31,7 @@ stdenv.mkDerivation rec {
3131 "--with-alsa" "--with-pipe" "--with-pa" "--with-stdout"
3232 "--with-avahi" "--with-ssl=openssl" "--with-soxr"
3333 "--without-configfiles"
34+ "--sysconfdir=/etc"
3435 ];
3536
3637 meta = with stdenv.lib; {