Fix option defaultText when referencing packages

By using `literalExample` the documentation will show the option
default without surrounding quotes.
This commit is contained in:
Robert Helgesson 2019-08-28 00:12:28 +02:00
parent db86bd6c01
commit 55b71223d4
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
28 changed files with 29 additions and 29 deletions

View file

@ -23,7 +23,7 @@ in
package = mkOption {
default = pkgs.fish;
defaultText = "pkgs.fish";
defaultText = literalExample "pkgs.fish";
description = ''
The fish package to install. May be used to change the version.
'';