nixpkgs/lib
Silvan Mosberger 307c0237d7 lib.generators: Handle no drvPath in toPretty
Previously, if a derivation without a `drvPath` was handled, an error
would be thrown:

    nix-repl> lib.generators.toPretty {} { type = "derivation"; }
    error: attribute 'drvPath' missing, at /home/infinisil/src/nixpkgs/lib/generators.nix:251:24

With this commit it doesn't anymore:

    nix-repl> lib.generators.toPretty {} { type = "derivation"; }
    "<derivation ???>"

This matches what `nix repl` outputs:

    nix-repl> { type = "derivation"; }
    «derivation ???»
2021-08-11 15:52:30 +02:00
..
systems lib.systems: add m68k-netbsd support 2021-08-01 15:27:12 +00:00
tests Merge pull request #131267 from blaggacao/fix-functionArgs 2021-08-04 00:02:57 +02:00
asserts.nix
attrsets.nix Merge pull request #110742 from siraben/deprecate-fold 2021-07-27 15:13:31 +07:00
cli.nix
customisation.nix treewide: Do a number of no-op cleanups for cross and darwin 2021-05-06 11:17:26 -04:00
debug.nix lib/debug: add traceFnSeqN 2021-01-25 19:25:50 +01:00
default.nix lib.mkFixStrictness: Deprecate 2021-07-12 07:31:29 +02:00
deprecated.nix treewide: fold -> foldr 2021-01-26 10:57:07 +07:00
fetchers.nix
filesystem.nix
fixed-points.nix lib: Add composeManyExtensions 2020-11-13 21:37:57 +01:00
flake.nix init: lib/flake 2021-04-28 14:21:27 -05:00
generators.nix lib.generators: Handle no drvPath in toPretty 2021-08-11 15:52:30 +02:00
kernel.nix
licenses.nix treewide: use quotes for url 2021-06-20 16:26:23 +02:00
lists.nix lib: remove mention of flashplayer in docs 2021-02-08 09:38:41 -08:00
meta.nix lib.meta: introduce availableOn 2021-04-02 19:20:23 +08:00
minver.nix
modules.nix lib.mkFixStrictness: Deprecate 2021-07-12 07:31:29 +02:00
options.nix Revert "Module-builtin assertions, disabling assertions and submodule assertions" 2020-12-18 16:44:37 +01:00
sources.nix lib.sources.trace: init 2021-05-29 16:03:55 +02:00
strings-with-deps.nix
strings.nix strings.nix: Fix overly monomorphic type signature comments 2021-07-04 20:52:48 +02:00
trivial.nix lib: fix functionArgs for functors 2021-08-03 16:40:58 -05:00
types.nix Merge pull request #128032 from Artturin/add-swap-options 2021-07-23 10:45:53 +02:00
versions.nix
zip-int-bits.nix