Nix
2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Toggle main menu visibility
Loading...
Searching...
No Matches
buildenv.hh
Go to the documentation of this file.
1
#pragma once
3
4
#include "
nix/store/store-api.hh
"
5
#include "
nix/util/fmt.hh
"
6
7
namespace
nix {
8
12
struct
Package
13
{
14
std::filesystem::path path;
15
bool
active;
16
int
priority;
17
18
Package(
const
std::filesystem::path & path,
bool
active,
int
priority)
19
: path{path}
20
, active{active}
21
, priority{priority}
22
{
23
}
24
};
25
26
class
BuildEnvFileConflictError final :
public
CloneableError<BuildEnvFileConflictError, Error>
27
{
28
private
:
29
void
anchor()
override
;
30
31
public
:
32
const
std::filesystem::path fileA;
33
const
std::filesystem::path fileB;
34
int
priority;
35
36
BuildEnvFileConflictError(
const
std::filesystem::path fileA,
const
std::filesystem::path fileB,
int
priority)
37
: CloneableError(
38
"Unable to build profile. There is a conflict for the following files:\n"
39
"\n"
40
" %1%\n"
41
" %2%"
,
42
PathFmt
(fileA),
43
PathFmt
(fileB))
44
, fileA(fileA)
45
, fileB(fileB)
46
, priority(priority)
47
{
48
}
49
};
50
51
typedef
std::vector<Package> Packages;
52
53
void
buildProfile(
const
std::filesystem::path & out, Packages && pkgs);
54
55
}
// namespace nix
fmt.hh
store-api.hh
nix::PathFmt
Definition
fmt.hh:115
libstore
include
nix
store
builtins
buildenv.hh
Generated by
1.18.0