mirror of
https://github.com/NixOS/nix.git
synced 2025-11-19 08:49:35 +01:00
BasicDerivation: Add applyRewrites() method
This is the first part of rewriteDerivation() factored out into its own method. It's not used anywhere else at the moment, but it's useful on lazy-trees for rewriting virtual paths.
This commit is contained in:
parent
3b76d01f3b
commit
df9ccdf31b
2 changed files with 20 additions and 12 deletions
|
|
@ -325,6 +325,12 @@ struct BasicDerivation
|
|||
|
||||
static std::string_view nameFromPath(const StorePath & storePath);
|
||||
|
||||
/**
|
||||
* Apply string rewrites to the `env`, `args` and `builder`
|
||||
* fields.
|
||||
*/
|
||||
void applyRewrites(const StringMap & rewrites);
|
||||
|
||||
bool operator == (const BasicDerivation &) const = default;
|
||||
// TODO libc++ 16 (used by darwin) missing `std::map::operator <=>`, can't do yet.
|
||||
//auto operator <=> (const BasicDerivation &) const = default;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue