From 563fdaeef95599e584fcff2e8f8d6f72011ffb99 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sun, 18 May 2025 11:45:24 +0200 Subject: [PATCH] tests: disable papis test on darwin https://github.com/NixOS/nixpkgs/issues/408528 --- tests/test-sources/plugins/by-name/papis/default.nix | 5 ++++- tests/test-sources/plugins/cmp/all-sources.nix | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/test-sources/plugins/by-name/papis/default.nix b/tests/test-sources/plugins/by-name/papis/default.nix index 19c23e48..8820e8ed 100644 --- a/tests/test-sources/plugins/by-name/papis/default.nix +++ b/tests/test-sources/plugins/by-name/papis/default.nix @@ -1,4 +1,7 @@ -{ +{ lib, pkgs, ... }: +# TODO: as of 2025-05-18, luajitPackages.luv is broken on darwin +# https://github.com/NixOS/nixpkgs/issues/408528 +lib.optionalAttrs (!pkgs.stdenv.hostPlatform.isDarwin) { empty = { plugins.papis.enable = true; }; diff --git a/tests/test-sources/plugins/cmp/all-sources.nix b/tests/test-sources/plugins/cmp/all-sources.nix index c74afb86..4e854186 100644 --- a/tests/test-sources/plugins/cmp/all-sources.nix +++ b/tests/test-sources/plugins/cmp/all-sources.nix @@ -35,6 +35,11 @@ ] ++ lib.optionals (hostPlatform.isLinux && hostPlatform.isAarch64) [ "cmp_tabnine" + ] + ++ lib.optionals hostPlatform.isDarwin [ + # TODO: as of 2025-05-18, luajitPackages.luv is broken on darwin + # https://github.com/NixOS/nixpkgs/issues/408528 + "papis" ]; in pipe config.cmpSourcePlugins [