mirror of
https://github.com/NixOS/nix.git
synced 2025-11-26 20:20:58 +01:00
Created commit shell script; next adding nix-state
This commit is contained in:
parent
97eb8c32a0
commit
c9e78a973a
5 changed files with 195 additions and 5 deletions
16
src/libstore/store-state.hh
Normal file
16
src/libstore/store-state.hh
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#ifndef __STORESTATE_H
|
||||
#define __STORESTATE_H
|
||||
|
||||
#include "derivations.hh"
|
||||
|
||||
namespace nix {
|
||||
|
||||
/* Create a state directory. */
|
||||
void createStateDirs(const DerivationStateOutputDirs & stateOutputDirs, const DerivationStateOutputs & stateOutputs, const StringPairs & env);
|
||||
|
||||
/* Create and prints the output prefixed with '[commandName]:' via print(lvlError,... of a shell command. */
|
||||
void executeAndPrintShellCommand(const string & command, const string & commandName);
|
||||
|
||||
}
|
||||
|
||||
#endif /* !__STORESTATE_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue