1 { system ? builtins.currentSystem
3 , pkgs ? import ../.. { inherit system config; }
7 inherit (pkgs.lib) const filterAttrs mapAttrs meta;
9 kernelRustTest = kernelPackages: import ./make-test-python.nix ({ lib, ... }: {
11 meta.maintainers = with lib.maintainers; [ blitz ma27 ];
12 nodes.machine = { config, ... }: {
14 inherit kernelPackages;
15 extraModulePackages = [ config.boot.kernelPackages.rust-out-of-tree-module ];
18 name = "Rust Support";
28 machine.wait_for_unit("default.target")
29 machine.succeed("modprobe rust_out_of_tree")
34 inherit (pkgs.linuxKernel.packages) linux_testing;
38 inherit (builtins.tryEval (
39 x.rust-out-of-tree-module or null != null
42 meta.availableOn pkgs.stdenv.hostPlatform x.rust-out-of-tree-module;
43 in success && value && available))
44 pkgs.linuxKernel.vanillaPackages;
45 in mapAttrs (const kernelRustTest) kernels