Replace usage of literalExample

Instead use the new function `literalExpression`. See

  https://github.com/NixOS/nixpkgs/pull/136909
This commit is contained in:
Naïm Favier
2021-10-09 11:14:08 +02:00
committed by Robert Helgesson
parent 468c461139
commit bd11e2c5e6
148 changed files with 335 additions and 335 deletions

View File

@@ -105,7 +105,7 @@ in {
description = ''
Package providing the <command>rofi</command> binary.
'';
example = literalExample ''
example = literalExpression ''
pkgs.rofi.override { plugins = [ pkgs.rofi-emoji ]; };
'';
};
@@ -116,7 +116,7 @@ in {
description = ''
List of rofi plugins to be installed.
'';
example = literalExample "[ pkgs.rofi-calc ]";
example = literalExpression "[ pkgs.rofi-calc ]";
};
font = mkOption {
@@ -166,7 +166,7 @@ in {
theme = mkOption {
default = null;
type = with types; nullOr (oneOf [ str path themeType ]);
example = literalExample ''
example = literalExpression ''
let
# Use `mkLiteral` for string-like values that should show without
# quotes, e.g.:
@@ -211,7 +211,7 @@ in {
extraConfig = mkOption {
default = { };
example = literalExample ''
example = literalExpression ''
{
modi = "drun,emoji,ssh";
kb-primary-paste = "Control+V,Shift+Insert";