12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #pragma once
- #include <derivations.hh>
- #include <map>
- #include <string>
- namespace nix {
- inline bool isBuiltin(const Derivation & drv)
- {
- return string(drv.builder, 0, 8) == "builtin:";
- }
-
- typedef void (*derivationBuilder) (const Derivation &drv,
- const std::string &drvPath,
- const std::string &output);
-
- derivationBuilder lookupBuiltinBuilder(const std::string &builder);
-
- std::list<std::string> builtinBuilderNames();
- }
|