2019-10-21 15:17:15 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "derivations.hh"
|
|
|
|
#include "store-api.hh"
|
|
|
|
|
|
|
|
namespace nix {
|
|
|
|
|
|
|
|
struct Package {
|
|
|
|
Path path;
|
|
|
|
bool active;
|
|
|
|
int priority;
|
2019-12-11 13:53:30 +00:00
|
|
|
Package(const Path & path, bool active, int priority) : path{path}, active{active}, priority{priority} {}
|
2019-10-21 15:17:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef std::vector<Package> Packages;
|
|
|
|
|
|
|
|
void buildProfile(const Path & out, Packages && pkgs);
|
|
|
|
|
|
|
|
void builtinBuildenv(const BasicDerivation & drv);
|
|
|
|
|
|
|
|
}
|