summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobert Hensing <roberth@users.noreply.github.com>2021-08-13 12:14:44 +0200
committerGitHub <noreply@github.com>2021-08-13 12:14:44 +0200
commit38819cd2f2c433998c3fdd4479bd69a9cb4b9a3a (patch)
tree247a801b71325987760c00414c9c1ff7c59fa2a5 /lib
parent95c7f7ed587025f4f65eaf2b623d09ff9333a963 (diff)
parent307c0237d7bfce7e4d84c65ec16a7af266809f0e (diff)
Merge pull request #133508 from Infinisil/toPretty-no-drvPath
lib.generators: Handle no drvPath in toPretty
Diffstat (limited to 'lib')
-rw-r--r--lib/generators.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/generators.nix b/lib/generators.nix
index c8144db50ac8..bcb0f371a9b5 100644
--- a/lib/generators.nix
+++ b/lib/generators.nix
@@ -248,7 +248,7 @@ rec {
then v.__pretty v.val
else if v == {} then "{ }"
else if v ? type && v.type == "derivation" then
- "<derivation ${v.drvPath}>"
+ "<derivation ${v.drvPath or "???"}>"
else "{" + introSpace
+ libStr.concatStringsSep introSpace (libAttr.mapAttrsToList
(name: value: