diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/generators.nix | 2 | ||||
-rw-r--r-- | lib/tests/misc.nix | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/generators.nix b/lib/generators.nix index b77cca75010f9..9620b8b27b9b9 100644 --- a/lib/generators.nix +++ b/lib/generators.nix @@ -330,7 +330,7 @@ rec { then v.__pretty v.val else if v == {} then "{ }" else if v ? type && v.type == "derivation" then - "<derivation ${v.drvPath or "???"}>" + "<derivation ${v.name or "???"}>" else "{" + introSpace + libStr.concatStringsSep introSpace (libAttr.mapAttrsToList (name: value: diff --git a/lib/tests/misc.nix b/lib/tests/misc.nix index b73da4f1010d4..9267e1f57694c 100644 --- a/lib/tests/misc.nix +++ b/lib/tests/misc.nix @@ -754,7 +754,7 @@ runTests { emptylist = "[ ]"; attrs = "{ foo = null; \"foo bar\" = \"baz\"; }"; emptyattrs = "{ }"; - drv = "<derivation ${deriv.drvPath}>"; + drv = "<derivation ${deriv.name}>"; }; }; |