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

View file

@ -31,14 +31,15 @@ stdenv.mkDerivation rec {
doCheck = true; doCheck = true;
nativeCheckInputs = [ lua51Packages.busted util-linux neovim ]; nativeCheckInputs = [ lua51Packages.busted util-linux neovim ];
# filter out one test that fails in the sandbox of nix # 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 runHook preCheck
make test BUSTED='busted --output TAP --exclude-tags=nix' make test BUSTED='busted --output TAP --exclude-tags=${exclude-tags}'
runHook postCheck runHook postCheck
''; '';
meta = with lib; { meta = with lib; {
broken = stdenv.isDarwin;
description = "Use neovim as pager"; description = "Use neovim as pager";
longDescription = '' longDescription = ''
Use neovim as a pager to view manpages, diffs, etc with nvim's syntax Use neovim as a pager to view manpages, diffs, etc with nvim's syntax