···6566in {
67 imports = [
68- (mkRenamedOptionModule [ "services" "snapserver" "controlPort"] [ "services" "snapserver" "tcp" "port" ])
69 ];
7071 ###### interface
···200 location = mkOption {
201 type = types.oneOf [ types.path types.str ];
202 description = ''
203- The location of the pipe, file, Librespot/Airplay/process binary, or a TCP address.
204- Use an empty string for alsa.
000000000205 '';
206 };
207 type = mkOption {
208- type = types.enum [ "pipe" "librespot" "airplay" "file" "process" "tcp" "alsa" "spotify" ];
209 default = "pipe";
210 description = ''
211 The type of input stream.
···6566in {
67 imports = [
68+ (mkRenamedOptionModule [ "services" "snapserver" "controlPort" ] [ "services" "snapserver" "tcp" "port" ])
69 ];
7071 ###### interface
···200 location = mkOption {
201 type = types.oneOf [ types.path types.str ];
202 description = ''
203+ For type <literal>pipe</literal> or <literal>file</literal>, the path to the pipe or file.
204+ For type <literal>librespot</literal>, <literal>airplay</literal> or <literal>process</literal>, the path to the corresponding binary.
205+ For type <literal>tcp</literal>, the <literal>host:port</literal> address to connect to or listen on.
206+ For type <literal>meta</literal>, a list of stream names in the form <literal>/one/two/...</literal>. Don't forget the leading slash.
207+ For type <literal>alsa</literal>, use an empty string.
208+ '';
209+ example = literalExample ''
210+ "/path/to/pipe"
211+ "/path/to/librespot"
212+ "192.168.1.2:4444"
213+ "/MyTCP/Spotify/MyPipe"
214 '';
215 };
216 type = mkOption {
217+ type = types.enum [ "pipe" "librespot" "airplay" "file" "process" "tcp" "alsa" "spotify" "meta" ];
218 default = "pipe";
219 description = ''
220 The type of input stream.
···18 # The websites youtube-dl deals with are a very moving target. That means that
19 # downloads break constantly. Because of that, updates should always be backported
20 # to the latest stable release.
21- version = "2021.04.01";
2223 src = fetchurl {
24 url = "https://yt-dl.org/downloads/${version}/${pname}-${version}.tar.gz";
25- sha256 = "1vw9l32bv115129v1lfar626y3vivvxkp36bc1phjcrsjfayz67h";
26 };
2728 nativeBuildInputs = [ installShellFiles makeWrapper ];
···18 # The websites youtube-dl deals with are a very moving target. That means that
19 # downloads break constantly. Because of that, updates should always be backported
20 # to the latest stable release.
21+ version = "2021.04.07";
2223 src = fetchurl {
24 url = "https://yt-dl.org/downloads/${version}/${pname}-${version}.tar.gz";
25+ sha256 = "02d51l6gdjr3zhhi7ydf5kzv8dv4jzq0ygja7zb2h9k7hnl0l27m";
26 };
2728 nativeBuildInputs = [ installShellFiles makeWrapper ];