Merge pull request #72506 from earksiinni/ersin/vim-coc-prettier
vimPlugins.coc-prettier: Add override
This commit is contained in:
commit
864be2ed1c
|
@ -95,6 +95,16 @@ let
|
|||
'' + optionalString (configure != {}) ''
|
||||
echo "Generating remote plugin manifest"
|
||||
export NVIM_RPLUGIN_MANIFEST=$out/rplugin.vim
|
||||
# Some plugins assume that the home directory is accessible for
|
||||
# initializing caches, temporary files, etc. Even if the plugin isn't
|
||||
# actively used, it may throw an error as soon as Neovim is launched
|
||||
# (e.g., inside an autoload script), causing manifest generation to
|
||||
# fail. Therefore, let's create a fake home directory before generating
|
||||
# the manifest, just to satisfy the needs of these plugins.
|
||||
#
|
||||
# See https://github.com/Yggdroot/LeaderF/blob/v1.21/autoload/lfMru.vim#L10
|
||||
# for an example of this behavior.
|
||||
export HOME="$(mktemp -d)"
|
||||
# Launch neovim with a vimrc file containing only the generated plugin
|
||||
# code. Pass various flags to disable temp file generation
|
||||
# (swap/viminfo) and redirect errors to stderr.
|
||||
|
|
|
@ -14,4 +14,4 @@ in
|
|||
import ./node-packages-v10.nix {
|
||||
inherit (pkgs) fetchurl fetchgit;
|
||||
inherit nodeEnv;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,4 +14,4 @@ in
|
|||
import ./node-packages-v12.nix {
|
||||
inherit (pkgs) fetchurl fetchgit;
|
||||
inherit nodeEnv;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
{pkgs ? import <nixpkgs> {
|
||||
inherit system;
|
||||
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-13_x"}:
|
||||
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-8_x"}:
|
||||
|
||||
let
|
||||
nodeEnv = import ./node-env.nix {
|
||||
|
@ -14,4 +14,4 @@ in
|
|||
import ./node-packages-v13.nix {
|
||||
inherit (pkgs) fetchurl fetchgit;
|
||||
inherit nodeEnv;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
, "browserify"
|
||||
, "castnow"
|
||||
, "clean-css"
|
||||
, "coc-prettier"
|
||||
, "coffee-script"
|
||||
, "coinmon"
|
||||
, "configurable-http-proxy"
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -850,13 +850,13 @@ let
|
|||
sha512 = "eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==";
|
||||
};
|
||||
};
|
||||
"hosted-git-info-2.8.5" = {
|
||||
"hosted-git-info-2.8.8" = {
|
||||
name = "hosted-git-info";
|
||||
packageName = "hosted-git-info";
|
||||
version = "2.8.5";
|
||||
version = "2.8.8";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.5.tgz";
|
||||
sha512 = "kssjab8CvdXfcXMXVcvsXum4Hwdq9XGtRD3TteMEvEbq0LXyiNQr6AprqKqfeaDXze7SxWvRxdpwE6ku7ikLkg==";
|
||||
url = "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.8.tgz";
|
||||
sha512 = "f/wzC2QaWBs7t9IYqB4T3sR1xviIViXJRJTWBlx2Gf3g0Xi5vI7Yy4koXQ1c9OYDGHN9sBy1DQ2AB8fqZBWhUg==";
|
||||
};
|
||||
};
|
||||
"http-signature-1.2.0" = {
|
||||
|
@ -1309,13 +1309,13 @@ let
|
|||
sha1 = "857fcabfc3397d2625b8228262e86aa7a011b05d";
|
||||
};
|
||||
};
|
||||
"minimist-1.2.0" = {
|
||||
"minimist-1.2.5" = {
|
||||
name = "minimist";
|
||||
packageName = "minimist";
|
||||
version = "1.2.0";
|
||||
version = "1.2.5";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz";
|
||||
sha1 = "a35008b20f41383eec1fb914f4cd5df79a264284";
|
||||
url = "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz";
|
||||
sha512 = "FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==";
|
||||
};
|
||||
};
|
||||
"minipass-2.9.0" = {
|
||||
|
@ -1426,13 +1426,13 @@ let
|
|||
sha1 = "c6465dbf08abcd4db359317f79ac68a646b28ff9";
|
||||
};
|
||||
};
|
||||
"nopt-4.0.1" = {
|
||||
"nopt-4.0.3" = {
|
||||
name = "nopt";
|
||||
packageName = "nopt";
|
||||
version = "4.0.1";
|
||||
version = "4.0.3";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/nopt/-/nopt-4.0.1.tgz";
|
||||
sha1 = "d0d4685afd5415193c8c7505602d0d17cd64474d";
|
||||
url = "https://registry.npmjs.org/nopt/-/nopt-4.0.3.tgz";
|
||||
sha512 = "CvaGwVMztSMJLOeXPrez7fyfObdZqNUK1cPAEzLHrTybIua9pMdmmPR5YwtfNftIOMv3DPUhFaxsZMNTQO20Kg==";
|
||||
};
|
||||
};
|
||||
"normalize-package-data-2.5.0" = {
|
||||
|
@ -2578,7 +2578,7 @@ in
|
|||
})
|
||||
sources."ms-2.0.0"
|
||||
sources."nanomatch-1.2.13"
|
||||
sources."nopt-4.0.1"
|
||||
sources."nopt-4.0.3"
|
||||
(sources."object-copy-0.1.0" // {
|
||||
dependencies = [
|
||||
sources."define-property-0.2.5"
|
||||
|
@ -2791,7 +2791,7 @@ in
|
|||
sources."har-schema-2.0.0"
|
||||
sources."har-validator-5.1.3"
|
||||
sources."has-unicode-2.0.1"
|
||||
sources."hosted-git-info-2.8.5"
|
||||
sources."hosted-git-info-2.8.8"
|
||||
sources."http-signature-1.2.0"
|
||||
sources."inflight-1.0.6"
|
||||
sources."inherits-2.0.4"
|
||||
|
@ -2980,7 +2980,7 @@ in
|
|||
sources."minipass-2.9.0"
|
||||
sources."minizlib-1.3.3"
|
||||
sources."mkdirp-0.5.1"
|
||||
sources."nopt-4.0.1"
|
||||
sources."nopt-4.0.3"
|
||||
sources."npmlog-4.1.2"
|
||||
sources."number-is-nan-1.0.1"
|
||||
sources."oauth-sign-0.9.0"
|
||||
|
@ -3033,10 +3033,10 @@ in
|
|||
node-gyp-build = nodeEnv.buildNodePackage {
|
||||
name = "node-gyp-build";
|
||||
packageName = "node-gyp-build";
|
||||
version = "4.2.0";
|
||||
version = "4.2.1";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.2.0.tgz";
|
||||
sha512 = "4oiumOLhCDU9Rronz8PZ5S4IvT39H5+JEv/hps9V8s7RSLhsac0TCP78ulnHXOo8X1wdpPiTayGlM1jr4IbnaQ==";
|
||||
url = "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.2.1.tgz";
|
||||
sha512 = "XyCKXsqZfLqHep1hhsMncoXuUNt/cXCjg1+8CLbu69V1TKuPiOeSGbL9n+k/ByKH8UT0p4rdIX8XkTRZV0i7Sw==";
|
||||
};
|
||||
buildInputs = globalBuildInputs;
|
||||
meta = {
|
||||
|
@ -3091,7 +3091,7 @@ in
|
|||
sources."mkdirp-0.5.1"
|
||||
sources."ms-2.1.2"
|
||||
sources."needle-2.4.0"
|
||||
sources."nopt-4.0.1"
|
||||
sources."nopt-4.0.3"
|
||||
sources."npm-bundled-1.1.1"
|
||||
sources."npm-normalize-package-bin-1.0.1"
|
||||
sources."npm-packlist-1.4.8"
|
||||
|
@ -3106,7 +3106,7 @@ in
|
|||
sources."process-nextick-args-2.0.1"
|
||||
(sources."rc-1.2.8" // {
|
||||
dependencies = [
|
||||
sources."minimist-1.2.0"
|
||||
sources."minimist-1.2.5"
|
||||
];
|
||||
})
|
||||
sources."readable-stream-2.3.7"
|
||||
|
|
|
@ -436,13 +436,13 @@ let
|
|||
sha1 = "e0e6fe6a28cf51138855e086d1691e771de2a8b9";
|
||||
};
|
||||
};
|
||||
"hosted-git-info-2.8.5" = {
|
||||
"hosted-git-info-2.8.8" = {
|
||||
name = "hosted-git-info";
|
||||
packageName = "hosted-git-info";
|
||||
version = "2.8.5";
|
||||
version = "2.8.8";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.5.tgz";
|
||||
sha512 = "kssjab8CvdXfcXMXVcvsXum4Hwdq9XGtRD3TteMEvEbq0LXyiNQr6AprqKqfeaDXze7SxWvRxdpwE6ku7ikLkg==";
|
||||
url = "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.8.tgz";
|
||||
sha512 = "f/wzC2QaWBs7t9IYqB4T3sR1xviIViXJRJTWBlx2Gf3g0Xi5vI7Yy4koXQ1c9OYDGHN9sBy1DQ2AB8fqZBWhUg==";
|
||||
};
|
||||
};
|
||||
"http-signature-1.2.0" = {
|
||||
|
@ -1315,7 +1315,7 @@ in
|
|||
sources."har-schema-2.0.0"
|
||||
sources."har-validator-5.1.3"
|
||||
sources."has-unicode-2.0.1"
|
||||
sources."hosted-git-info-2.8.5"
|
||||
sources."hosted-git-info-2.8.8"
|
||||
sources."http-signature-1.2.0"
|
||||
sources."inflight-1.0.6"
|
||||
sources."inherits-2.0.4"
|
||||
|
|
|
@ -4,6 +4,5 @@ mkShell {
|
|||
buildInputs = [
|
||||
bash nodePackages.node2nix
|
||||
];
|
||||
NODE_NIXPKGS_PATH = toString ./.;
|
||||
NODE_NIXPKGS_PATH = ./.;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
, languagetool
|
||||
, Cocoa, CoreFoundation, CoreServices
|
||||
, buildVimPluginFrom2Nix
|
||||
, nodePackages
|
||||
|
||||
# coc-go dependency
|
||||
, go
|
||||
|
@ -138,6 +139,12 @@ self: super: {
|
|||
};
|
||||
};
|
||||
|
||||
coc-prettier = buildVimPluginFrom2Nix {
|
||||
pname = "coc-prettier";
|
||||
version = nodePackages.coc-prettier.version;
|
||||
src = "${nodePackages.coc-prettier}/lib/node_modules/coc-prettier";
|
||||
};
|
||||
|
||||
command-t = super.command-t.overrideAttrs(old: {
|
||||
buildInputs = [ ruby rake ];
|
||||
buildPhase = ''
|
||||
|
|
Loading…
Reference in New Issue