mpv: allow string values in scripts list

Fixes #976
This commit is contained in:
Robert Helgesson 2020-01-11 17:44:04 +01:00
parent 0fce533e70
commit 297ed97166
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -55,7 +55,7 @@ in {
enable = mkEnableOption "mpv"; enable = mkEnableOption "mpv";
scripts = mkOption { scripts = mkOption {
type = types.listOf types.package; type = with types; listOf (either package str);
default = []; default = [];
example = literalExample "[ pkgs.mpvScripts.mpris ]"; example = literalExample "[ pkgs.mpvScripts.mpris ]";
description = '' description = ''