2023-02-05 22:38:21 +00:00
|
|
|
let
|
2024-10-06 14:55:01 +00:00
|
|
|
pkgs = import <nixpkgs> { };
|
|
|
|
liminix = <liminix>;
|
2024-06-30 15:58:29 +00:00
|
|
|
borderVmConf = ./bordervm.conf-example.nix;
|
2023-02-05 22:38:21 +00:00
|
|
|
inherit (pkgs.lib.attrsets) genAttrs;
|
2023-12-11 19:01:07 +00:00
|
|
|
devices = [
|
2024-02-21 19:49:14 +00:00
|
|
|
"gl-ar750"
|
|
|
|
"gl-mt300a"
|
|
|
|
"gl-mt300n-v2"
|
|
|
|
"qemu"
|
|
|
|
"qemu-aarch64"
|
|
|
|
"qemu-armv7l"
|
2024-01-30 10:23:29 +00:00
|
|
|
"tp-archer-ax23"
|
2024-12-18 13:17:46 +00:00
|
|
|
"openwrt-one"
|
2024-02-21 19:32:50 +00:00
|
|
|
"zyxel-nwa50ax"
|
2024-12-19 20:56:05 +00:00
|
|
|
"turris-omnia"
|
2025-01-03 15:39:08 +00:00
|
|
|
"belkin-rt3200"
|
2023-12-11 19:01:07 +00:00
|
|
|
];
|
2023-02-05 22:38:21 +00:00
|
|
|
vanilla = ./vanilla-configuration.nix;
|
2025-02-10 21:55:08 +00:00
|
|
|
for-device =
|
|
|
|
name:
|
2023-02-05 22:38:21 +00:00
|
|
|
(import liminix {
|
2024-10-06 14:55:01 +00:00
|
|
|
inherit borderVmConf;
|
2023-02-05 22:38:21 +00:00
|
|
|
device = import (liminix + "/devices/${name}");
|
2023-12-11 19:01:07 +00:00
|
|
|
liminix-config = vanilla;
|
2023-02-05 22:38:21 +00:00
|
|
|
}).outputs.default;
|
|
|
|
tests = import ./tests/ci.nix;
|
|
|
|
jobs =
|
2024-06-30 15:58:29 +00:00
|
|
|
(genAttrs devices for-device)
|
|
|
|
// tests
|
|
|
|
// {
|
|
|
|
buildEnv =
|
|
|
|
(import liminix {
|
2024-10-06 14:55:01 +00:00
|
|
|
inherit borderVmConf;
|
2024-06-30 15:58:29 +00:00
|
|
|
device = import (liminix + "/devices/qemu");
|
|
|
|
liminix-config = vanilla;
|
|
|
|
}).buildEnv;
|
2025-04-06 20:37:18 +00:00
|
|
|
doc = pkgs.callPackage ./doc.nix { inherit liminix borderVmConf; } ;
|
2023-02-05 22:38:21 +00:00
|
|
|
};
|
2025-02-10 21:55:08 +00:00
|
|
|
in
|
|
|
|
jobs
|
|
|
|
// {
|
|
|
|
all = pkgs.mkShell {
|
|
|
|
name = "all tests";
|
|
|
|
contents = pkgs.lib.collect pkgs.lib.isDerivation jobs;
|
|
|
|
};
|
|
|
|
}
|