nix/src
John Ericson 765436e300 Add builtins.addDrvOutputDependencies
End goal: make `(mkDerivation x).drvPath` behave like a non-DrvDeep
context.

Problem: users won't be able to recover the DrvDeep behavior when
nixpkgs makes this change.

Solution: add this primop.

The new primop is fairly simple, and is supposed to complement other
existing ones (`builtins.storePath`, `builtins.outputOf`) so there are
simple ways to construct strings with every type of string context
element.

(It allows nothing we couldn't already do with `builtins.getContext` and `builtins.appendContext`, which is also true of those other two primops.)

This was originally in #8595, but then it was proposed to land some doc
changes separately. So now the code changes proper is just moved to
this, and the doc will be done in that.

Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
Co-authored-by: Théophane Hufschmitt <7226587+thufschmitt@users.nore
github.com>
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io
2023-10-23 12:49:14 -04:00
..
build-remote Allow dynamic derivation deps in inputDrvs 2023-09-07 10:39:37 -04:00
libcmd Overhaul completions, redo #6693 (#8131) 2023-10-23 15:03:11 +02:00
libexpr Add builtins.addDrvOutputDependencies 2023-10-23 12:49:14 -04:00
libfetchers Merge pull request #9177 from edolstra/input-accessors 2023-10-23 11:42:04 +02:00
libmain Overhaul completions, redo #6693 (#8131) 2023-10-23 15:03:11 +02:00
libstore Merge pull request #6223 from obsidiansystems/worker-proto-with-version 2023-10-23 09:16:23 -04:00
libutil Overhaul completions, redo #6693 (#8131) 2023-10-23 15:03:11 +02:00
nix Overhaul completions, redo #6693 (#8131) 2023-10-23 15:03:11 +02:00
nix-build printStats -> maybePrintStats 2023-10-09 16:34:35 +02:00
nix-channel Remove fetchers::Tree and move tarball-related stuff into its own header 2023-10-20 19:56:52 +02:00
nix-collect-garbage Clean up a few things related to profiles (#8526) 2023-06-19 04:04:59 +00:00
nix-copy-closure Remove FormatOrString and remaining uses of format() 2023-03-02 15:57:54 +01:00
nix-env printStats -> maybePrintStats 2023-10-09 16:34:35 +02:00
nix-instantiate printStats -> maybePrintStats 2023-10-09 16:34:35 +02:00
nix-store Factor out serialization for BuildResult 2023-10-20 15:19:28 -04:00
resolve-system-dependencies Remove FormatOrString and remaining uses of format() 2023-03-02 15:57:54 +01:00
toml11 Replace cpptoml with toml11 2021-12-17 22:03:33 +01:00