diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-10-21 17:17:15 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-10-21 17:40:40 +0200 |
commit | b82f75464d1e5ae9a00d8004e5dd7b1ca05059e4 (patch) | |
tree | 4d8cac1b2f87446de64ea6bf0a300926fe20142e /src/libstore/builtins/buildenv.hh | |
parent | a7aabd7cc785bbf34ad29101672677ced18a7fdd (diff) |
buildenv: Eliminate global variables, other cleanup
Diffstat (limited to 'src/libstore/builtins/buildenv.hh')
-rw-r--r-- | src/libstore/builtins/buildenv.hh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/libstore/builtins/buildenv.hh b/src/libstore/builtins/buildenv.hh new file mode 100644 index 000000000..0a37459b0 --- /dev/null +++ b/src/libstore/builtins/buildenv.hh @@ -0,0 +1,21 @@ +#pragma once + +#include "derivations.hh" +#include "store-api.hh" + +namespace nix { + +struct Package { + Path path; + bool active; + int priority; + Package(Path path, bool active, int priority) : path{path}, active{active}, priority{priority} {} +}; + +typedef std::vector<Package> Packages; + +void buildProfile(const Path & out, Packages && pkgs); + +void builtinBuildenv(const BasicDerivation & drv); + +} |