nvimpager: unbreak on darwin (#299252)

Fixes nvimpager in darwin.
This commit is contained in:
Joan Massachs 2024-03-27 01:17:13 +01:00 committed by GitHub
parent e80d1b6300
commit e9200ffef2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 3 deletions

View File

@ -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