shairport-sync: fix pulseaudio support & default arguments
This commit is contained in:
parent
30d24a2e3f
commit
e7ca9af4cc
@ -27,7 +27,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
arguments = mkOption {
|
arguments = mkOption {
|
||||||
default = "-v -o pulse";
|
default = "-v -d pulse";
|
||||||
description = ''
|
description = ''
|
||||||
Arguments to pass to the daemon. Defaults to a local pulseaudio
|
Arguments to pass to the daemon. Defaults to a local pulseaudio
|
||||||
server.
|
server.
|
||||||
@ -72,6 +72,7 @@ in
|
|||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
User = cfg.user;
|
User = cfg.user;
|
||||||
ExecStart = "${pkgs.shairport-sync}/bin/shairport-sync ${cfg.arguments}";
|
ExecStart = "${pkgs.shairport-sync}/bin/shairport-sync ${cfg.arguments}";
|
||||||
|
RuntimeDirectory = "shairport-sync";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -28,9 +28,9 @@ stdenv.mkDerivation rec {
|
|||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--with-alsa" "--with-pipe" "--with-pulseaudio" "--with-stdout"
|
"--with-alsa" "--with-pipe" "--with-pa" "--with-stdout"
|
||||||
"--with-avahi" "--with-ssl=openssl" "--with-soxr"
|
"--with-avahi" "--with-ssl=openssl" "--with-soxr"
|
||||||
"--without-configfiles" "--without-initscript"
|
"--without-configfiles"
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user