about summary refs log tree commit diff
path: root/third_party/cpp
diff options
context:
space:
mode:
authorPeter Kolloch <info@eigenvalue.net>2024-02-17T05·15+0700
committerclbot <clbot@tvl.fyi>2024-02-17T07·30+0000
commit48d4d10bacdf2843f0a59711c872062348208a37 (patch)
tree02bfcd254f7f15f6c8ac878a23a81769f0b2bd2c /third_party/cpp
parenta9f5bb859fa23e9b00621df2cd725a1b0f1bd4d8 (diff)
refactor(tvix/nix-compat): derivation_or_fod_hash w/o self.clone() r/7538
Instead of constructing a completely new derivation for hashing,
allow to call hashing with substituted input_derivations.

This

1. reduces the number of allocations,
2. prepares substituting `String`s for store paths with proper `StorePath`s without needing a separate derivation struct that allows hashes without `/nix/store` in input_derivations, and
3. keeps the change local to the `Derivation` implementation.

Change-Id: I36732c78f98fc59f0925b65823773222782017b0
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10935
Tested-by: BuildkiteCI
Reviewed-by: flokli <flokli@flokli.de>
Autosubmit: Peter Kolloch <info@eigenvalue.net>
Diffstat (limited to 'third_party/cpp')
0 files changed, 0 insertions, 0 deletions