1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-11 03:21:03 +01:00
nix/src/libstore/build
John Ericson 7ad66cb3ef Allow dynamic derivation deps in inputDrvs
We use the same nested map representation we used for goals, again in
order to save space. We might someday want to combine with `inputDrvs`,
by doing `V = bool` instead of `V = std::set<OutputName>`, but we are
not doing that yet for sake of a smaller diff.

The ATerm format for Derivations also needs to be extended, in addition
to the in-memory format. To accomodate this, we added a new basic
versioning scheme, so old versions of Nix will get nice errors. (And
going forward, if the ATerm format changes again the errors will be even
better.)

`parsedStrings`, an internal function used as part of parsing
derivations in A-Term format, used to consume the final `]` but expect
the initial `[` to already be consumed. This made for what looked like
unbalanced brackets at callsites, which was confusing. Now it consumes
both which is hopefully less confusing.

As part of testing, we also created a unit test for the A-Term format for
regular non-experimental derivations too.

Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>

Apply suggestions from code review

Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2023-09-07 10:39:37 -04:00
..
create-derivation-and-realise-goal.cc Fix warning 'catching polymorphic type by value' 2023-09-01 14:49:49 +02:00
create-derivation-and-realise-goal.hh Adapt scheduler to work with dynamic derivations 2023-08-25 10:01:25 -04:00
derivation-goal.cc Allow dynamic derivation deps in inputDrvs 2023-09-07 10:39:37 -04:00
derivation-goal.hh Adapt scheduler to work with dynamic derivations 2023-08-25 10:01:25 -04:00
drv-output-substitution-goal.cc Fix crash/hang with CA derivations 2023-03-08 11:09:15 +01:00
drv-output-substitution-goal.hh Adapt scheduler to work with dynamic derivations 2023-08-25 10:01:25 -04:00
entry-points.cc Adapt scheduler to work with dynamic derivations 2023-08-25 10:01:25 -04:00
goal.cc Adapt scheduler to work with dynamic derivations 2023-08-25 10:01:25 -04:00
goal.hh Adapt scheduler to work with dynamic derivations 2023-08-25 10:01:25 -04:00
hook-instance.cc Split OptionalPathSetting from PathSetting 2023-06-18 23:31:18 -04:00
hook-instance.hh Finish converting existing comments for internal API docs (#8146) 2023-04-07 13:55:28 +00:00
local-derivation-goal.cc Introduce OutputName and OutputNameView type aliases 2023-08-25 09:55:07 -04:00
local-derivation-goal.hh Introduce OutputName and OutputNameView type aliases 2023-08-25 09:55:07 -04:00
personality.cc Also set the PER_LINUX32 personality flag on armv5tel-linux 2023-06-02 03:04:13 -06:00
personality.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
sandbox-defaults.sb Move macOS sandbox files to sr/libstore/build 2023-01-04 04:50:45 -08:00
sandbox-minimal.sb Move macOS sandbox files to sr/libstore/build 2023-01-04 04:50:45 -08:00
sandbox-network.sb Move macOS sandbox files to sr/libstore/build 2023-01-04 04:50:45 -08:00
substitution-goal.cc max-substitution-jobs release note entry 2023-05-14 09:51:11 +01:00
substitution-goal.hh Adapt scheduler to work with dynamic derivations 2023-08-25 10:01:25 -04:00
worker.cc Allow dynamic derivation deps in inputDrvs 2023-09-07 10:39:37 -04:00
worker.hh Allow dynamic derivation deps in inputDrvs 2023-09-07 10:39:37 -04:00