about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoan Massachs <22916782+JoanMassachs@users.noreply.github.com>2024-03-27 01:17:13 +0100
committerGitHub <noreply@github.com>2024-03-27 01:17:13 +0100
commite9200ffef24c072e89036fa55bf2a305354d4cbb (patch)
tree6e58b6b357cad7fd9400686898f3e2d9129c541c
parente80d1b630036fe33badbc168dfcd071d463b92cf (diff)
nvimpager: unbreak on darwin (#299252)
Fixes nvimpager in darwin.
-rw-r--r--pkgs/tools/misc/nvimpager/default.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/tools/misc/nvimpager/default.nix b/pkgs/tools/misc/nvimpager/default.nix
index f2679259fa1f6..fb10d0ad89c96 100644
--- a/pkgs/tools/misc/nvimpager/default.nix
+++ b/pkgs/tools/misc/nvimpager/default.nix
@@ -31,14 +31,15 @@ stdenv.mkDerivation rec {
   doCheck = true;
   nativeCheckInputs = [ lua51Packages.busted util-linux neovim ];
   # filter out one test that fails in the sandbox of nix
-  checkPhase = ''
+  checkPhase = let
+    exclude-tags = if stdenv.isDarwin then "nix,mac" else "nix";
+  in ''
     runHook preCheck
-    make test BUSTED='busted --output TAP --exclude-tags=nix'
+    make test BUSTED='busted --output TAP --exclude-tags=${exclude-tags}'
     runHook postCheck
   '';
 
   meta = with lib; {
-    broken = stdenv.isDarwin;
     description = "Use neovim as pager";
     longDescription = ''
       Use neovim as a pager to view manpages, diffs, etc with nvim's syntax