Merge pull request #133508 from Infinisil/toPretty-no-drvPath

lib.generators: Handle no drvPath in toPretty
This commit is contained in:
Robert Hensing
2021-08-13 12:14:44 +02:00
committed by GitHub
+1 -1
View File
@@ -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: