Eelco Dolstra
eab2919119
Use SourcePath in more places
...
Now that SourcePath uses a SourceAccessor instead of an InputAccessor,
we can use it in function signatures instead of passing a
SourceAccessor and CanonPath separately.
2024-05-06 19:05:42 +02:00
John Ericson
ed26b186fb
Remove now-redundant text-hashing store methods
...
`addTextToStore` and `computeStorePathFromDump` are now redundant.
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2023-12-18 10:44:10 -05:00
John Ericson
dfc876531f
Organize content addressing, use SourceAccessor
with Store::addToStore
...
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2023-12-18 10:41:54 -05:00
Peter Kolloch
5334c9c792
HashType: Rename to HashAlgorithm
...
To be consistent with CLI, nix API
and many other references.
As part of this, we also converted it to a scoped enum.
https://github.com/NixOS/nix/issues/8876
2023-12-06 23:43:42 +01:00
John Ericson
e97ac09abe
Factor out StoreDirConfig
...
More progress on #5729 .
2023-11-04 19:05:36 -04:00