mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
Merge pull request #313251 from lucc/nvimpager
nvimpager: 0.12.0 -> 0.13.0
This commit is contained in:
commit
a64a502cd7
@ -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}
|
||||
|
||||
|
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user