2
0
Files
liminix/ci.nix
T

40 lines
922 B
Nix
Raw Normal View History

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