mirror of
https://github.com/NixOS/nix.git
synced 2025-11-22 10:19:36 +01:00
Allow dynamic registration of builtin builders
This commit is contained in:
parent
2676ae7ca6
commit
40bbad3be5
5 changed files with 32 additions and 15 deletions
|
|
@ -1,4 +1,5 @@
|
|||
#include "nix/store/builtins/buildenv.hh"
|
||||
#include "nix/store/builtins.hh"
|
||||
#include "nix/store/derivations.hh"
|
||||
#include "nix/util/signals.hh"
|
||||
|
||||
|
|
@ -166,7 +167,7 @@ void buildProfile(const Path & out, Packages && pkgs)
|
|||
debug("created %d symlinks in user environment", state.symlinks);
|
||||
}
|
||||
|
||||
void builtinBuildenv(
|
||||
static void builtinBuildenv(
|
||||
const BasicDerivation & drv,
|
||||
const std::map<std::string, Path> & outputs)
|
||||
{
|
||||
|
|
@ -203,4 +204,6 @@ void builtinBuildenv(
|
|||
createSymlink(getAttr("manifest"), out + "/manifest.nix");
|
||||
}
|
||||
|
||||
static RegisterBuiltinBuilder registerBuildenv("buildenv", builtinBuildenv);
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue