mirror of
https://github.com/NixOS/nix.git
synced 2025-11-27 12:41:00 +01:00
created sub commit scripts
This commit is contained in:
parent
86b053dd80
commit
97eb8c32a0
7 changed files with 27 additions and 10 deletions
|
|
@ -92,7 +92,18 @@ Path makeStatePath(const string & type, const Hash & hash, const string & suffix
|
|||
+ "-" + suffix;
|
||||
}
|
||||
|
||||
Path makeStateReposPath(const string & type, const Hash & hash, const string & suffix)
|
||||
{
|
||||
/* e.g., "source:sha256:1abc...:/nix/store:foo.tar.gz" */
|
||||
string s = type + ":sha256:" + printHash(hash) + ":"
|
||||
+ nixStoreState + ":" + suffix;
|
||||
|
||||
checkStoreName(suffix); //should this be here?
|
||||
|
||||
return nixStoreStateRepos + "/"
|
||||
+ printHash32(compressHash(hashString(htSHA256, s), 20))
|
||||
+ "-" + suffix;
|
||||
}
|
||||
|
||||
Path makeFixedOutputPath(bool recursive,
|
||||
string hashAlgo, Hash hash, string name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue