From e7ca9af4cc7ad9c1c980ba4694cc9edaedcfda19 Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Wed, 26 Sep 2018 18:07:06 +0200 Subject: [PATCH] shairport-sync: fix pulseaudio support & default arguments --- nixos/modules/services/networking/shairport-sync.nix | 3 ++- pkgs/servers/shairport-sync/default.nix | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/nixos/modules/services/networking/shairport-sync.nix b/nixos/modules/services/networking/shairport-sync.nix index 0b87140b0d8..36ecb74ffc9 100644 --- a/nixos/modules/services/networking/shairport-sync.nix +++ b/nixos/modules/services/networking/shairport-sync.nix @@ -27,7 +27,7 @@ in }; arguments = mkOption { - default = "-v -o pulse"; + default = "-v -d pulse"; description = '' Arguments to pass to the daemon. Defaults to a local pulseaudio server. @@ -72,6 +72,7 @@ in serviceConfig = { User = cfg.user; ExecStart = "${pkgs.shairport-sync}/bin/shairport-sync ${cfg.arguments}"; + RuntimeDirectory = "shairport-sync"; }; }; diff --git a/pkgs/servers/shairport-sync/default.nix b/pkgs/servers/shairport-sync/default.nix index fbce457aedc..eef97588111 100644 --- a/pkgs/servers/shairport-sync/default.nix +++ b/pkgs/servers/shairport-sync/default.nix @@ -28,9 +28,9 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; configureFlags = [ - "--with-alsa" "--with-pipe" "--with-pulseaudio" "--with-stdout" + "--with-alsa" "--with-pipe" "--with-pa" "--with-stdout" "--with-avahi" "--with-ssl=openssl" "--with-soxr" - "--without-configfiles" "--without-initscript" + "--without-configfiles" ]; meta = with stdenv.lib; {