diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-11-18T11·38+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-11-18T11·38+0000 |
commit | b1117ef29d35822647bda32f8cd3887f4f6eaede (patch) | |
tree | 1635a7fd961930104c56aef2fa20ecb3e29d9798 /src/nix-instantiate/primops.hh | |
parent | ce92d1bf1434562f5b80320c503768c4d06f1f8d (diff) |
* nix -> nix-store, fix -> nix-instantiate.
Diffstat (limited to 'src/nix-instantiate/primops.hh')
-rw-r--r-- | src/nix-instantiate/primops.hh | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/nix-instantiate/primops.hh b/src/nix-instantiate/primops.hh new file mode 100644 index 000000000000..76d587afdb1e --- /dev/null +++ b/src/nix-instantiate/primops.hh @@ -0,0 +1,34 @@ +#ifndef __PRIMOPS_H +#define __PRIMOPS_H + +#include "eval.hh" + + +/* Load and evaluate an expression from path specified by the + argument. */ +Expr primImport(EvalState & state, Expr arg); + +/* Construct (as a unobservable) side effect) a Nix derivation + expression that performs the derivation described by the argument + set. Returns the original set extended with the following + attributes: `outPath' containing the primary output path of the + derivation; `drvPath' containing the path of the Nix expression; + and `type' set to `derivation' to indicate that this is a + derivation. */ +Expr primDerivation(EvalState & state, Expr args); + +/* Return the base name of the given string, i.e., everything + following the last slash. */ +Expr primBaseNameOf(EvalState & state, Expr arg); + +/* Convert the argument (which can be a path or a uri) to a string. */ +Expr primToString(EvalState & state, Expr arg); + +/* Return the null value. */ +Expr primNull(EvalState & state); + +/* Determine whether the argument is the null value. */ +Expr primIsNull(EvalState & state, Expr arg); + + +#endif /* !__PRIMOPS_H */ |