nixos/nscd: Fix lib.literalExample deprecation

The NixOS evaluation would complain:

trace: warning: literalExample is deprecated, use literalExpression instead, or use literalDocBook for a non-Nix description.
This commit is contained in:
Jan Tojnar 2022-04-26 14:06:52 +02:00
parent 5f3eeb9c52
commit 6b738bce80

View file

@ -38,7 +38,7 @@ in
default = if pkgs.stdenv.hostPlatform.libc == "glibc"
then pkgs.stdenv.cc.libc.bin
else pkgs.glibc.bin;
defaultText = literalExample ''
defaultText = lib.literalExpression ''
if pkgs.stdenv.hostPlatform.libc == "glibc"
then pkgs.stdenv.cc.libc.bin
else pkgs.glibc.bin;