-
Notifications
You must be signed in to change notification settings - Fork 6
/
ci.nix
39 lines (38 loc) · 1003 Bytes
/
ci.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
28
29
30
31
32
33
34
35
36
37
38
39
{ config, pkgs, env, lib, ... }: with pkgs; with lib; let
input-linux = import ./. { pkgs = null; };
inherit (input-linux) checks;
in {
config = {
name = "input-linux";
ci.version = "v0.7";
ci.gh-actions.enable = true;
cache.cachix = {
ci.signingKey = "";
arc.enable = true;
};
channels = {
nixpkgs = mkIf (env.platform != "impure") "stable";
};
tasks = {
test.inputs = singleton (checks.test.override {
buildFeatures = config.features;
});
};
system = "x86_64-linux";
jobs = {
default = {
tasks.version.inputs = singleton checks.version;
};
all.features = lib.remove "dox" input-linux.lib.crate.package.metadata.docs.rs.features;
serde.features = [ "serde" ];
} // genAttrs input-linux.lib.tokio-util-features (feat: {
features = singleton feat;
});
};
options = {
features = mkOption {
type = with types; listOf str;
default = [ ];
};
};
}