mpv: allow string values in scripts list

Fixes #976

(cherry picked from commit 297ed97166)
This commit is contained in:
Robert Helgesson
2020-01-11 17:44:04 +01:00
parent 8d663335eb
commit f5c9303ced

View File

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