Genode Packages collection https://git.sr.ht/~ehmry/genodepkgs/
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

default.nix 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. { flake, system, localSystem, crossSystem, pkgs }:
  2. let
  3. lib = flake.lib.${system};
  4. nixpkgs = flake.legacyPackages.${system};
  5. legacyPackages = flake.legacyPackages.${system};
  6. testingPython = import ./lib/testing-python.nix;
  7. testSpecs = map (p: import p) [
  8. ./ahci.nix
  9. ./bash.nix
  10. ./hello.nix
  11. ./log.nix
  12. ./networking.nix
  13. ./vmm_x86.nix
  14. ./x86.nix
  15. ];
  16. cores = [
  17. /* {
  18. prefix = "hw-pc-";
  19. testingPython = testingPython {
  20. inherit flake system localSystem crossSystem pkgs;
  21. extraConfigurations = [ ../nixos-modules/base-hw-pc.nix ];
  22. };
  23. specs = [ "x86" "hw" ];
  24. platforms = [ "x86_64-genode" ];
  25. }
  26. */
  27. /* {
  28. prefix = "hw-virt_qemu-";
  29. testingPython = testingPython {
  30. inherit flake system localSystem crossSystem pkgs;
  31. extraConfigurations = [ ../nixos-modules/base-hw-virt_qemu.nix ];
  32. };
  33. specs = [ "aarch64" "hw" ];
  34. platforms = [ "aarch64-genode" ];
  35. }
  36. */
  37. {
  38. prefix = "nova-";
  39. testingPython = testingPython {
  40. inherit flake system localSystem crossSystem pkgs;
  41. extraConfigurations = [ ../nixos-modules/nova.nix ];
  42. };
  43. specs = [ "x86" "nova" ];
  44. platforms = [ "x86_64-genode" ];
  45. }
  46. ];
  47. cores' = builtins.filter (core:
  48. builtins.any (x: x == pkgs.stdenv.hostPlatform.system) core.platforms)
  49. cores;
  50. testList = let
  51. f = core: test:
  52. if (test.constraints or (_: true)) core.specs then {
  53. name = core.prefix + test.name;
  54. value = core.testingPython.makeTest test;
  55. } else
  56. null;
  57. in lib.lists.crossLists f [ cores' testSpecs ];
  58. in builtins.listToAttrs (builtins.filter (_: _ != null) testList)