-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathprofile.nix
27 lines (27 loc) · 840 Bytes
/
profile.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{lib, ...}: let
l = lib // builtins;
t = l.types;
in {
imports = [../options/drvConfig.nix];
options = {
features = l.mkOption {
type = t.nullOr (t.listOf t.str);
default = null;
defaultText = ''["default"]'';
example = l.literalExpression ''
["tracing" "publish"]
'';
description = ''
Features to enable for this profile. Set to 'null' to enable default features only (this is the default).
If set to a list of features then '--no-default-features' will be passed to Cargo.
If you want to also enable default features you can add 'default' feature to the list of features.
'';
};
runTests = l.mkOption {
type = t.bool;
default = false;
example = true;
description = "Whether to run tests for this profile";
};
};
}