neovim: green :CheckHealth
This commit is contained in:
parent
7199f1bd94
commit
bb80d77d84
@ -5,6 +5,7 @@
|
|||||||
, withPython ? true, pythonPackages, extraPythonPackages ? []
|
, withPython ? true, pythonPackages, extraPythonPackages ? []
|
||||||
, withPython3 ? true, python3Packages, extraPython3Packages ? []
|
, withPython3 ? true, python3Packages, extraPython3Packages ? []
|
||||||
, withJemalloc ? true, jemalloc
|
, withJemalloc ? true, jemalloc
|
||||||
|
, withRuby ? true, bundlerEnv
|
||||||
|
|
||||||
, withPyGUI ? false
|
, withPyGUI ? false
|
||||||
, vimAlias ? false
|
, vimAlias ? false
|
||||||
@ -44,6 +45,14 @@ let
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
rubyEnv = bundlerEnv {
|
||||||
|
name = "neovim-ruby-env";
|
||||||
|
gemdir = ./ruby_provider;
|
||||||
|
};
|
||||||
|
|
||||||
|
rubyWrapper = ''--suffix PATH : \"${rubyEnv}/bin\" '' +
|
||||||
|
''--suffix GEM_HOME : \"${rubyEnv}/${rubyEnv.ruby.gemPath}\" '';
|
||||||
|
|
||||||
pythonEnv = pythonPackages.python.buildEnv.override {
|
pythonEnv = pythonPackages.python.buildEnv.override {
|
||||||
extraLibs = (
|
extraLibs = (
|
||||||
if withPyGUI
|
if withPyGUI
|
||||||
@ -52,11 +61,17 @@ let
|
|||||||
) ++ extraPythonPackages;
|
) ++ extraPythonPackages;
|
||||||
ignoreCollisions = true;
|
ignoreCollisions = true;
|
||||||
};
|
};
|
||||||
|
pythonWrapper = ''--cmd \"let g:python_host_prog='$out/bin/nvim-python'\" '';
|
||||||
|
|
||||||
python3Env = python3Packages.python.buildEnv.override {
|
python3Env = python3Packages.python.buildEnv.override {
|
||||||
extraLibs = [ python3Packages.neovim ] ++ extraPython3Packages;
|
extraLibs = [ python3Packages.neovim ] ++ extraPython3Packages;
|
||||||
ignoreCollisions = true;
|
ignoreCollisions = true;
|
||||||
};
|
};
|
||||||
|
python3Wrapper = ''--cmd \"let g:python3_host_prog='$out/bin/nvim-python3'\" '';
|
||||||
|
pythonFlags = optionalString (withPython || withPython3) ''--add-flags "${
|
||||||
|
(optionalString withPython pythonWrapper) +
|
||||||
|
(optionalString withPython3 python3Wrapper)
|
||||||
|
}"'';
|
||||||
|
|
||||||
neovim = stdenv.mkDerivation rec {
|
neovim = stdenv.mkDerivation rec {
|
||||||
name = "neovim-${version}";
|
name = "neovim-${version}";
|
||||||
@ -124,13 +139,8 @@ let
|
|||||||
--prefix PATH : "$out/bin"
|
--prefix PATH : "$out/bin"
|
||||||
'' + optionalString withPython3 ''
|
'' + optionalString withPython3 ''
|
||||||
ln -s ${python3Env}/bin/python3 $out/bin/nvim-python3
|
ln -s ${python3Env}/bin/python3 $out/bin/nvim-python3
|
||||||
'' + optionalString (withPython || withPython3) ''
|
'' + optionalString (withPython || withPython3 || withRuby) ''
|
||||||
wrapProgram $out/bin/nvim --add-flags "${
|
wrapProgram $out/bin/nvim ${rubyWrapper + pythonFlags}
|
||||||
(optionalString withPython
|
|
||||||
''--cmd \"let g:python_host_prog='$out/bin/nvim-python'\" '') +
|
|
||||||
(optionalString withPython3
|
|
||||||
''--cmd \"let g:python3_host_prog='$out/bin/nvim-python3'\" '')
|
|
||||||
}"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
3
pkgs/applications/editors/neovim/ruby_provider/Gemfile
Normal file
3
pkgs/applications/editors/neovim/ruby_provider/Gemfile
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
source 'https://rubygems.org'
|
||||||
|
|
||||||
|
gem 'neovim'
|
15
pkgs/applications/editors/neovim/ruby_provider/Gemfile.lock
Normal file
15
pkgs/applications/editors/neovim/ruby_provider/Gemfile.lock
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
GEM
|
||||||
|
remote: https://rubygems.org/
|
||||||
|
specs:
|
||||||
|
msgpack (1.0.2)
|
||||||
|
neovim (0.3.1)
|
||||||
|
msgpack (~> 1.0)
|
||||||
|
|
||||||
|
PLATFORMS
|
||||||
|
ruby
|
||||||
|
|
||||||
|
DEPENDENCIES
|
||||||
|
neovim
|
||||||
|
|
||||||
|
BUNDLED WITH
|
||||||
|
1.12.5
|
19
pkgs/applications/editors/neovim/ruby_provider/gemset.nix
Normal file
19
pkgs/applications/editors/neovim/ruby_provider/gemset.nix
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
msgpack = {
|
||||||
|
source = {
|
||||||
|
remotes = ["https://rubygems.org"];
|
||||||
|
sha256 = "1fb2my91j08plsbbry5kilsrh7slmzgbbf6f55zy6xk28p9036lg";
|
||||||
|
type = "gem";
|
||||||
|
};
|
||||||
|
version = "1.0.2";
|
||||||
|
};
|
||||||
|
neovim = {
|
||||||
|
dependencies = ["msgpack"];
|
||||||
|
source = {
|
||||||
|
remotes = ["https://rubygems.org"];
|
||||||
|
sha256 = "018mk4vqaxzbk4anq558h2rgj8prbn2rmi777iwrg3n0v8k5nxqw";
|
||||||
|
type = "gem";
|
||||||
|
};
|
||||||
|
version = "0.3.1";
|
||||||
|
};
|
||||||
|
}
|
@ -29597,12 +29597,12 @@ EOF
|
|||||||
};
|
};
|
||||||
|
|
||||||
neovim = buildPythonPackage rec {
|
neovim = buildPythonPackage rec {
|
||||||
version = "0.1.10";
|
version = "0.1.12";
|
||||||
name = "neovim-${version}";
|
name = "neovim-${version}";
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
src = pkgs.fetchurl {
|
||||||
url = "mirror://pypi/n/neovim/${name}.tar.gz";
|
url = "mirror://pypi/n/neovim/${name}.tar.gz";
|
||||||
sha256 = "1n6xxh0n250qbvrdl0cw114d890nfv6d0wjk5wpr505sg2bg9jx4";
|
sha256 = "1pll4jjqdq54d867hgqnnpiiz4pz4bbjrnh6binbp7djcbgrb8zq";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = with self; [ nose ];
|
buildInputs = with self; [ nose ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user