Skip to content

Commit

Permalink
examples: use lib.meta.availableOn where appropriate
Browse files Browse the repository at this point in the history
  • Loading branch information
ipetkov committed Dec 4, 2024
1 parent 3af1e1f commit af1556e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions examples/end-to-end-testing/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,12 @@
touch $out
'';

pkgsSupportsPackage = pkg:
(lib.elem system pkg.meta.platforms) && !(lib.elem system pkg.meta.badPlatforms);
in
{
checks = {
inherit workspace;
# Firefox is broken in some platforms (namely "aarch64-apple-darwin"), skip those
} // (lib.optionalAttrs (pkgsSupportsPackage pkgs.firefox) {
} // (lib.optionalAttrs (lib.meta.availableOn system pkgs.firefox) {
inherit runE2ETests;
});

Expand Down

0 comments on commit af1556e

Please sign in to comment.