diff options
author | Robert Hensing <roberth@users.noreply.github.com> | 2021-08-13 12:14:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-13 12:14:44 +0200 |
commit | 38819cd2f2c433998c3fdd4479bd69a9cb4b9a3a (patch) | |
tree | 247a801b71325987760c00414c9c1ff7c59fa2a5 /lib | |
parent | 95c7f7ed587025f4f65eaf2b623d09ff9333a963 (diff) | |
parent | 307c0237d7bfce7e4d84c65ec16a7af266809f0e (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.nix | 2 |
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: |