Genode Packages collection
https://git.sr.ht/~ehmry/genodepkgs/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
977 B
35 lines
977 B
# SPDX-License-Identifier: CC0-1.0 |
|
|
|
let |
|
tests = call: |
|
{ |
|
fs_report = call ./fs_report.nix { }; |
|
signal = call ./signal.nix { }; |
|
} // call ./solo5 { }; |
|
|
|
in { self, system, localSystem, crossSystem, genodepkgs, nixpkgs, dhall-haskell, genode-depot, lib }: |
|
|
|
let |
|
hostPkgs = import nixpkgs { |
|
system = localSystem; |
|
overlays = [ (self: super: { inherit (dhall-haskell.packages) dhall; }) ]; |
|
}; |
|
depot = builtins.getAttr crossSystem genode-depot.packages; |
|
testPkgs = genodepkgs; |
|
|
|
linux = tests (import ./driver-linux.nix { |
|
inherit testPkgs hostPkgs lib depot; |
|
}).callTest; |
|
|
|
nova = (call: ((tests call) // { pci = call ./pci.nix { }; })) |
|
(import ./driver-nova.nix { |
|
inherit system testPkgs hostPkgs lib depot; |
|
}).callTest; |
|
|
|
testsToList = tests: |
|
map (test: { |
|
inherit (test) name; |
|
value = test; |
|
}) (builtins.attrValues tests); |
|
|
|
in with builtins; listToAttrs (concatLists (map (testsToList) [ linux nova ]))
|
|
|