From b4c7a0b76252f4c115e36bcb6496c7a5928a9ec7 Mon Sep 17 00:00:00 2001 From: Matthieu Coudron Date: Sat, 23 May 2020 17:05:52 +0200 Subject: [PATCH] neovim-unwrapped: improve testing ability Make functionaltests more complete. --- pkgs/applications/editors/neovim/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/applications/editors/neovim/default.nix b/pkgs/applications/editors/neovim/default.nix index 475330a5fe57..0d54817c5340 100644 --- a/pkgs/applications/editors/neovim/default.nix +++ b/pkgs/applications/editors/neovim/default.nix @@ -6,6 +6,7 @@ # now defaults to false because some tests can be flaky (clipboard etc) , doCheck ? false +, nodejs ? null, fish ? null, python ? null }: with stdenv.lib; @@ -17,6 +18,8 @@ let nvim-client luv coxpcall busted luafilesystem penlight inspect ] )); + + pyEnv = python.withPackages(ps: [ ps.pynvim ps.msgpack ]); in stdenv.mkDerivation rec { pname = "neovim-unwrapped"; @@ -67,6 +70,13 @@ in pkgconfig ]; + # extra programs test via `make functionaltest` + checkInputs = [ + fish + nodejs + pyEnv # for src/clint.py + ]; + # nvim --version output retains compilation flags and references to build tools postPatch = ''