1
1
Fork 0
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:
Wouter den Breejen 2007-05-22 16:57:36 +00:00
parent 86b053dd80
commit 97eb8c32a0
7 changed files with 27 additions and 10 deletions

View file

@ -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)