From af1556ecda8bcf305820f68ec2f9d77b41d9cc80 Mon Sep 17 00:00:00 2001 From: Ivan Petkov Date: Tue, 3 Dec 2024 20:23:51 -0800 Subject: [PATCH] examples: use lib.meta.availableOn where appropriate --- examples/end-to-end-testing/flake.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/examples/end-to-end-testing/flake.nix b/examples/end-to-end-testing/flake.nix index df99b6f7..51fad6be 100644 --- a/examples/end-to-end-testing/flake.nix +++ b/examples/end-to-end-testing/flake.nix @@ -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; });