Merge pull request #324600 from erictapen/mastodon

nixos/mastodon: use recurseIntoAttrs for better test ergonomics
This commit is contained in:
Martin Weinelt 2024-07-04 19:47:11 +02:00 committed by GitHub
commit e0d9110aee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -535,7 +535,7 @@ in {
mailman = handleTest ./mailman.nix {}; mailman = handleTest ./mailman.nix {};
man = handleTest ./man.nix {}; man = handleTest ./man.nix {};
mariadb-galera = handleTest ./mysql/mariadb-galera.nix {}; mariadb-galera = handleTest ./mysql/mariadb-galera.nix {};
mastodon = discoverTests (import ./web-apps/mastodon { inherit handleTestOn; }); mastodon = pkgs.recurseIntoAttrs (handleTest ./web-apps/mastodon { inherit handleTestOn; });
pixelfed = discoverTests (import ./web-apps/pixelfed { inherit handleTestOn; }); pixelfed = discoverTests (import ./web-apps/pixelfed { inherit handleTestOn; });
mate = handleTest ./mate.nix {}; mate = handleTest ./mate.nix {};
mate-wayland = handleTest ./mate-wayland.nix {}; mate-wayland = handleTest ./mate-wayland.nix {};

View File

@ -1,9 +1,9 @@
{ system ? builtins.currentSystem, handleTestOn }: { system ? builtins.currentSystem, pkgs, handleTestOn, ... }:
let let
supportedSystems = [ "x86_64-linux" "i686-linux" "aarch64-linux" ]; supportedSystems = [ "x86_64-linux" "i686-linux" "aarch64-linux" ];
in in
{ {
standard = handleTestOn supportedSystems ./standard.nix { inherit system; }; standard = handleTestOn supportedSystems ./standard.nix { inherit system pkgs; };
remote-databases = handleTestOn supportedSystems ./remote-databases.nix { inherit system; }; remote-databases = handleTestOn supportedSystems ./remote-databases.nix { inherit system pkgs; };
} }