summary refs log tree commit diff
path: root/pkgs/applications/editors/neovim
diff options
context:
space:
mode:
authorPeter Hoeg <peter@hoeg.com>2017-09-09 09:31:09 +0800
committerPeter Hoeg <peter@hoeg.com>2017-09-09 09:32:13 +0800
commit608fe16482a645d3d66f6c31ec11ddd6871b90bf (patch)
tree167dc0a51e55b94762134a6827ef8874161bb09c /pkgs/applications/editors/neovim
parentb21778f43e73c425d2753f51f8bb6f68f57ed053 (diff)
downloadnixpkgs-608fe16482a645d3d66f6c31ec11ddd6871b90bf.tar
nixpkgs-608fe16482a645d3d66f6c31ec11ddd6871b90bf.tar.gz
nixpkgs-608fe16482a645d3d66f6c31ec11ddd6871b90bf.tar.bz2
nixpkgs-608fe16482a645d3d66f6c31ec11ddd6871b90bf.tar.lz
nixpkgs-608fe16482a645d3d66f6c31ec11ddd6871b90bf.tar.xz
nixpkgs-608fe16482a645d3d66f6c31ec11ddd6871b90bf.tar.zst
nixpkgs-608fe16482a645d3d66f6c31ec11ddd6871b90bf.zip
neovim-qt: 0.2.7 -> 0.2.8
We now also run some of the tests which is better than nothing.
Diffstat (limited to 'pkgs/applications/editors/neovim')
-rw-r--r--pkgs/applications/editors/neovim/qt.nix26
1 files changed, 13 insertions, 13 deletions
diff --git a/pkgs/applications/editors/neovim/qt.nix b/pkgs/applications/editors/neovim/qt.nix
index e24ca50a024..48f7b29f407 100644
--- a/pkgs/applications/editors/neovim/qt.nix
+++ b/pkgs/applications/editors/neovim/qt.nix
@@ -3,13 +3,13 @@
 
 stdenv.mkDerivation rec {
   name = "neovim-qt-${version}";
-  version = "0.2.7";
+  version = "0.2.8";
 
   src = fetchFromGitHub {
     owner  = "equalsraf";
     repo   = "neovim-qt";
     rev    = "v${version}";
-    sha256 = "1bfni38l7cs0wbd9c6hgz2jfc8h3ixmg94izdvydm8j7amdz0cb6";
+    sha256 = "190yg6kkw953h8wajlqr2hvs2fz65y6z0blmywlg1nff724allaq";
   };
 
   cmakeFlags = [
@@ -17,14 +17,6 @@ stdenv.mkDerivation rec {
     "-DMSGPACK_LIBRARIES=${libmsgpack}/lib/libmsgpackc.so"
   ];
 
-  # The following tests FAILED:
-  #       2 - tst_neovimconnector (Failed)
-  #       3 - tst_callallmethods (Failed)
-  #       4 - tst_encoding (Failed)
-  #
-  # Tests failed when upgraded to neovim 0.2.0
-  doCheck = false;
-
   buildInputs = with pythonPackages; [
     neovim qtbase libmsgpack
   ] ++ (with pythonPackages; [
@@ -38,10 +30,18 @@ stdenv.mkDerivation rec {
   preConfigure = ''
     # avoid cmake trying to download libmsgpack
     echo "" > third-party/CMakeLists.txt
-    # we rip out the gui test as spawning a GUI fails in our build environment
-    sed -i '/^add_xtest_gui/d' test/CMakeLists.txt
+    # we rip out a number of tests that fail in the build env
+    # the GUI tests will never work but the others should - they did before neovim 0.2.0
+    # was released
+    sed -i test/CMakeLists.txt \
+      -e '/^add_xtest_gui/d' \
+      -e '/tst_neovimconnector/d' \
+      -e '/tst_callallmethods/d' \
+      -e '/tst_encoding/d'
   '';
 
+  doCheck = true;
+
   postInstall = ''
     wrapProgram "$out/bin/nvim-qt" \
       --prefix PATH : "${neovim}/bin"
@@ -49,7 +49,7 @@ stdenv.mkDerivation rec {
 
   meta = with stdenv.lib; {
     description = "Neovim client library and GUI, in Qt5";
-    license = licenses.isc;
+    license     = licenses.isc;
     maintainers = with maintainers; [ peterhoeg ];
     inherit (neovim.meta) platforms;
     inherit version;