nvimpager: 0.12.0 -> 0.13.0

This commit is contained in:
Lucas Hoffmann 2024-05-20 23:50:54 +02:00 committed by Weijia Wang
parent 02d17ed973
commit eff2e77eee
2 changed files with 10 additions and 11 deletions

View File

@ -12,7 +12,9 @@
## Backward Incompatibilities {#sec-release-24.11-incompatibilities}
- Create the first release note entry in this section!
- `nvimpager` was updated to version 0.13.0, which changes the order of user and
nvimpager settings: user commands in `-c` and `--cmd` now override the
respective default settings because they are executed later.
## Other Notable Changes {#sec-release-24.11-notable-changes}

View File

@ -6,13 +6,13 @@
stdenv.mkDerivation rec {
pname = "nvimpager";
version = "0.12.0";
version = "0.13.0";
src = fetchFromGitHub {
owner = "lucc";
repo = pname;
rev = "v${version}";
sha256 = "sha256-RmpPWS9gnBnR+Atw6uzBmeDSgoTOFSdKzHoJ84O+gyA=";
sha256 = "sha256-Au9rRZMZfU4qHi/ng6JO8FnMpySKDbKzr75SBPY3QiA=";
};
buildInputs = [
@ -25,18 +25,15 @@ stdenv.mkDerivation rec {
buildFlags = [ "nvimpager.configured" "nvimpager.1" ];
preBuild = ''
patchShebangs nvimpager
substituteInPlace nvimpager --replace ':-nvim' ':-${neovim}/bin/nvim'
substituteInPlace nvimpager --replace-fail ':-nvim' ':-${lib.getExe neovim}'
'';
doCheck = true;
nativeCheckInputs = [ lua51Packages.busted util-linux neovim ];
# filter out one test that fails in the sandbox of nix
checkPhase = let
exclude-tags = if stdenv.isDarwin then "nix,mac" else "nix";
in ''
runHook preCheck
make test BUSTED='busted --output TAP --exclude-tags=${exclude-tags}'
runHook postCheck
# filter out one test that fails in the sandbox of nix or with neovim v0.10
# or on macOS
preCheck = ''
checkFlagsArray+=('BUSTED=busted --output TAP --exclude-tags=${"nix,v10" + lib.optionalString stdenv.isDarwin ",mac"}')
'';
meta = with lib; {