treewide: stdenv.lib -> lib
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ stdenv
|
||||
{ lib, stdenv
|
||||
, rtpPath ? "share/vim-plugins"
|
||||
, vim
|
||||
}:
|
||||
@@ -18,7 +18,7 @@ rec {
|
||||
buildPhase ? "",
|
||||
preInstall ? "",
|
||||
postInstall ? "",
|
||||
path ? stdenv.lib.getName name,
|
||||
path ? lib.getName name,
|
||||
addonInfo ? null,
|
||||
...
|
||||
}:
|
||||
|
||||
@@ -73,11 +73,11 @@ self: super: {
|
||||
src = LanguageClient-neovim-src;
|
||||
|
||||
cargoSha256 = "0mf94j85awdcqa6cyb89bipny9xg13ldkznjf002fq747f55my2a";
|
||||
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ CoreServices ];
|
||||
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
|
||||
|
||||
# FIXME: Use impure version of CoreFoundation because of missing symbols.
|
||||
# Undefined symbols for architecture x86_64: "_CFURLResourceIsReachable"
|
||||
preConfigure = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
preConfigure = lib.optionalString stdenv.isDarwin ''
|
||||
export NIX_LDFLAGS="-F${CoreFoundation}/Library/Frameworks -framework CoreFoundation $NIX_LDFLAGS"
|
||||
'';
|
||||
};
|
||||
@@ -180,8 +180,8 @@ self: super: {
|
||||
meta = {
|
||||
description = "Address-completion for khard via deoplete";
|
||||
homepage = "https://github.com/nicoe/deoplete-khard";
|
||||
license = stdenv.lib.licenses.mit;
|
||||
maintainers = with stdenv.lib.maintainers; [ jorsn ];
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ jorsn ];
|
||||
};
|
||||
});
|
||||
|
||||
@@ -234,7 +234,7 @@ self: super: {
|
||||
meta = with lib; {
|
||||
description = "Discord rich presence for Vim";
|
||||
homepage = "https://github.com/hugolgst/vimsence";
|
||||
maintainers = with stdenv.lib.maintainers; [ hugolgst ];
|
||||
maintainers = with lib.maintainers; [ hugolgst ];
|
||||
};
|
||||
});
|
||||
|
||||
@@ -245,7 +245,7 @@ self: super: {
|
||||
meson = buildVimPluginFrom2Nix {
|
||||
inherit (meson) pname version src;
|
||||
preInstall = "cd data/syntax-highlighting/vim";
|
||||
meta.maintainers = with stdenv.lib.maintainers; [ vcunat ];
|
||||
meta.maintainers = with lib.maintainers; [ vcunat ];
|
||||
};
|
||||
|
||||
ncm2 = super.ncm2.overrideAttrs(old: {
|
||||
@@ -325,7 +325,7 @@ self: super: {
|
||||
description = "Vim-Improved eMACS: Emacs emulation plugin for Vim";
|
||||
homepage = "http://algorithm.com.au/code/vimacs";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with stdenv.lib.maintainers; [ millerjason ];
|
||||
maintainers = with lib.maintainers; [ millerjason ];
|
||||
};
|
||||
});
|
||||
|
||||
@@ -334,7 +334,7 @@ self: super: {
|
||||
});
|
||||
|
||||
vim-addon-manager = super.vim-addon-manager.overrideAttrs(old: {
|
||||
buildInputs = stdenv.lib.optional stdenv.isDarwin Cocoa;
|
||||
buildInputs = lib.optional stdenv.isDarwin Cocoa;
|
||||
});
|
||||
|
||||
vim-addon-actions = super.vim-addon-actions.overrideAttrs(old: {
|
||||
@@ -581,7 +581,7 @@ self: super: {
|
||||
buildInputs = [ python3.pkgs.jedi ];
|
||||
meta = {
|
||||
description = "code-completion for python using python-jedi";
|
||||
license = stdenv.lib.licenses.mit;
|
||||
license = lib.licenses.mit;
|
||||
};
|
||||
});
|
||||
|
||||
@@ -602,7 +602,7 @@ self: super: {
|
||||
propagatedBuildInputs = [ gnome3.zenity ];
|
||||
meta = {
|
||||
description = "Simple color selector/picker plugin";
|
||||
license = stdenv.lib.licenses.publicDomain;
|
||||
license = lib.licenses.publicDomain;
|
||||
};
|
||||
});
|
||||
|
||||
@@ -632,7 +632,7 @@ self: super: {
|
||||
ln -s ${hexokinase}/bin/hexokinase $target/hexokinase/hexokinase
|
||||
'';
|
||||
|
||||
meta.platforms = stdenv.lib.platforms.all;
|
||||
meta.platforms = lib.platforms.all;
|
||||
});
|
||||
|
||||
vim-clap = super.vim-clap.overrideAttrs(old: {
|
||||
@@ -647,7 +647,7 @@ self: super: {
|
||||
|
||||
buildInputs = [
|
||||
openssl
|
||||
] ++ stdenv.lib.optionals stdenv.isDarwin [
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
CoreServices
|
||||
curl
|
||||
libgit2
|
||||
@@ -660,7 +660,7 @@ self: super: {
|
||||
ln -s ${maple-bin}/bin/maple $target/bin/maple
|
||||
'';
|
||||
|
||||
meta.platforms = stdenv.lib.platforms.all;
|
||||
meta.platforms = lib.platforms.all;
|
||||
});
|
||||
|
||||
completion-tabnine = super.completion-tabnine.overrideAttrs(old: {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, vim, vimPlugins, vim_configurable, neovim, buildEnv, writeText, writeScriptBin
|
||||
{ lib, stdenv, vim, vimPlugins, vim_configurable, neovim, buildEnv, writeText, writeScriptBin
|
||||
, nix-prefetch-hg, nix-prefetch-git
|
||||
, fetchFromGitHub, runtimeShell
|
||||
}:
|
||||
@@ -150,7 +150,7 @@ vim_with_plugins can be installed like any other application within Nix.
|
||||
|
||||
|
||||
let
|
||||
inherit (stdenv) lib;
|
||||
inherit lib;
|
||||
|
||||
# make sure a plugin is a derivation and its dependencies are derivations. If
|
||||
# plugin already is a derivation, this is a no-op. If it is a string, it is
|
||||
@@ -373,7 +373,7 @@ rec {
|
||||
gvimExecutableName,
|
||||
}:
|
||||
let
|
||||
rcOption = o: file: stdenv.lib.optionalString (file != null) "-${o} ${file}";
|
||||
rcOption = o: file: lib.optionalString (file != null) "-${o} ${file}";
|
||||
vimWrapperScript = writeScriptBin vimExecutableName ''
|
||||
#!${runtimeShell}
|
||||
exec ${vimExecutable} ${rcOption "u" vimrcFile} ${rcOption "U" gvimrcFile} "$@"
|
||||
@@ -450,7 +450,7 @@ rec {
|
||||
|
||||
vim_with_vim2nix = vim_configurable.customize { name = "vim"; vimrcConfig.vam.pluginDictionaries = [ "vim-addon-vim2nix" ]; };
|
||||
|
||||
inherit (import ./build-vim-plugin.nix { inherit stdenv rtpPath vim; }) buildVimPlugin buildVimPluginFrom2Nix;
|
||||
inherit (import ./build-vim-plugin.nix { inherit lib stdenv rtpPath vim; }) buildVimPlugin buildVimPluginFrom2Nix;
|
||||
|
||||
# used to figure out which python dependencies etc. neovim needs
|
||||
requiredPlugins = {
|
||||
|
||||
Reference in New Issue
Block a user