mirror of
https://github.com/NixOS/nix.git
synced 2025-11-26 12:10:59 +01:00
State is now maintained (their paths are automatically shared), unless sharedState is set in the nix-expr, when a new version with the same drv-name of the component is installed
This commit is contained in:
parent
7424d72098
commit
4089bd5f19
9 changed files with 110 additions and 75 deletions
|
|
@ -1262,6 +1262,16 @@ string padd(const string & s, char c , unsigned int size, bool front)
|
|||
ss = ss + c;
|
||||
}
|
||||
return ss;
|
||||
}
|
||||
}
|
||||
|
||||
void sharePath(const Path & fromExisting, const Path & toNew)
|
||||
{
|
||||
//Symlink link to the share path
|
||||
Strings p_args;
|
||||
p_args.push_back("-sf");
|
||||
p_args.push_back(fromExisting);
|
||||
p_args.push_back(toNew);
|
||||
runProgram_AndPrintOutput("ln", true, p_args, "ln"); //run
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue