coc-explorer: migrate from nodePackages

This commit is contained in:
dish
2025-10-02 10:54:40 -04:00
parent 5ba77d6ad8
commit 721d8186c6
6 changed files with 52 additions and 231 deletions
@@ -5,6 +5,7 @@
coc-css,
coc-diagnostic,
coc-docker,
coc-explorer,
coc-git,
coc-pyright,
coc-spell-checker,
@@ -36,6 +37,11 @@ final: prev: {
src = "${coc-docker}/lib/node_modules/coc-docker";
};
coc-explorer = buildVimPlugin {
inherit (coc-explorer) pname version meta;
src = "${coc-explorer}/lib/node_modules/coc-explorer";
};
coc-git = buildVimPlugin {
inherit (coc-git) pname version meta;
src = "${coc-git}/lib/node_modules/coc-git";
@@ -9,7 +9,6 @@ let
"coc-cmake"
"coc-emmet"
"coc-eslint"
"coc-explorer"
"coc-flutter"
"coc-go"
"coc-haxe"
+45
View File
@@ -0,0 +1,45 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
fetchYarnDeps,
yarnConfigHook,
yarnBuildHook,
yarnInstallHook,
nodejs,
nix-update-script,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "coc-explorer";
version = "0.27.3";
src = fetchFromGitHub {
owner = "weirongxu";
repo = "coc-explorer";
tag = "v${finalAttrs.version}";
hash = "sha256-lIJloatVEKPM36GE/xpVk+cx8Jz89BWU8qsNjc1eoFw=";
};
yarnOfflineCache = fetchYarnDeps {
yarnLock = "${finalAttrs.src}/yarn.lock";
hash = "sha256-w2La2GTJfHjn6qaVQaHsQp8V2KNx2hqDVuBJUYk6WKg=";
};
nativeBuildInputs = [
yarnConfigHook
yarnBuildHook
yarnInstallHook
nodejs
];
yarnBuildScript = "build:pack";
passthru.updateScript = nix-update-script { };
meta = {
description = "Explorer for coc.nvim";
homepage = "https://github.com/weirongxu/coc-explorer";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pyrox0 ];
};
})
@@ -74,6 +74,7 @@ mapAliases {
inherit (pkgs) coc-css; # added 2024-06-29
inherit (pkgs) coc-diagnostic; # added 2024-06-29
inherit (pkgs) coc-docker; # added 2025-10-01
inherit (pkgs) coc-explorer; # added 2025-10-01
inherit (pkgs) coc-git; # added 2025-10-01
coc-imselect = throw "coc-imselect was removed because it was broken"; # added 2023-08-21
inherit (pkgs) coc-pyright; # added 2024-07-14
@@ -26,7 +26,6 @@
, "coc-cmake"
, "coc-emmet"
, "coc-eslint"
, "coc-explorer"
, "coc-flutter"
, "coc-go"
, "coc-haxe"
-229
View File
@@ -4829,33 +4829,6 @@ let
sha512 = "XJfwUVUKDHF5ugKwIcxEgc9k8b7HbznCp6eUfWgu710hMPNIO4aw4/zB5RogDQz8nd6gyCDpU9O/m6qYEWY6yQ==";
};
};
"@sindresorhus/chunkify-0.2.0" = {
name = "_at_sindresorhus_slash_chunkify";
packageName = "@sindresorhus/chunkify";
version = "0.2.0";
src = fetchurl {
url = "https://registry.npmjs.org/@sindresorhus/chunkify/-/chunkify-0.2.0.tgz";
sha512 = "mOAiwqu+bIIkNFDCXFJxZEmF9p9WHfSBbpLLmgysYnNkEs7aA0/AvU9+6zLHFqI7JnqdqwAuWu8CbGwGIszRdw==";
};
};
"@sindresorhus/df-1.0.1" = {
name = "_at_sindresorhus_slash_df";
packageName = "@sindresorhus/df";
version = "1.0.1";
src = fetchurl {
url = "https://registry.npmjs.org/@sindresorhus/df/-/df-1.0.1.tgz";
sha512 = "1Hyp7NQnD/u4DSxR2DGW78TF9k7R0wZ8ev0BpMAIzA6yTQSHqNb5wTuvtcPYf4FWbVse2rW7RgDsyL8ua2vXHw==";
};
};
"@sindresorhus/df-3.1.1" = {
name = "_at_sindresorhus_slash_df";
packageName = "@sindresorhus/df";
version = "3.1.1";
src = fetchurl {
url = "https://registry.npmjs.org/@sindresorhus/df/-/df-3.1.1.tgz";
sha512 = "SME/vtXaJcnQ/HpeV6P82Egy+jThn11IKfwW8+/XVoRD0rmPHVTeKMtww1oWdVnMykzVPjmrDN9S8NBndPEHCQ==";
};
};
"@sindresorhus/is-0.14.0" = {
name = "_at_sindresorhus_slash_is";
packageName = "@sindresorhus/is";
@@ -5549,15 +5522,6 @@ let
sha512 = "Pb6M8TDO9DtSVla9yXSTAxmo9GVEouq5P40DWXdOie69bXogZTkgvopCq+yEvTMA0F6PEvdJmbtTV3ccIp11VQ==";
};
};
"@stroncium/procfs-1.2.1" = {
name = "_at_stroncium_slash_procfs";
packageName = "@stroncium/procfs";
version = "1.2.1";
src = fetchurl {
url = "https://registry.npmjs.org/@stroncium/procfs/-/procfs-1.2.1.tgz";
sha512 = "X1Iui3FUNZP18EUvysTHxt+Avu2nlVzyf90YM8OYgP6SGzTzzX/0JgObfO1AQQDzuZtNNz29bVh8h5R97JrjxA==";
};
};
"@stylelint/postcss-css-in-js-0.37.3" = {
name = "_at_stylelint_slash_postcss-css-in-js";
packageName = "@stylelint/postcss-css-in-js";
@@ -8699,15 +8663,6 @@ let
sha512 = "YkwkMmPA2+GSGvXj1s9NZ6cc2LBtR+uSeWTy2IGi5MR1Wag4DdrcjTxA/YV/Fw+qKlBeXomneZgThEbm/wvZbw==";
};
};
"array-union-1.0.2" = {
name = "array-union";
packageName = "array-union";
version = "1.0.2";
src = fetchurl {
url = "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz";
sha512 = "Dxr6QJj/RdU/hCaBjOfxW+q6lyuVE6JFWIrAUpuOOhoJJoQ99cUn3igRaHVB5P9WrgFVN0FfArM3x0cueOU8ng==";
};
};
"array-union-2.1.0" = {
name = "array-union";
packageName = "array-union";
@@ -14442,15 +14397,6 @@ let
sha512 = "2xMCmOoMrdQIPHdsTawECdNPwlVFB9zGcz3kuhmBO6U3oU+UQjsue0i8ayLKpgBcm+hcXPMVSGUN9d+pvJ6+VQ==";
};
};
"dir-glob-2.2.2" = {
name = "dir-glob";
packageName = "dir-glob";
version = "2.2.2";
src = fetchurl {
url = "https://registry.npmjs.org/dir-glob/-/dir-glob-2.2.2.tgz";
sha512 = "f9LBi5QWzIW3I6e//uxZoLBlUt9kcp66qo0sSCxL6YZKc75R1c4MFCoe/LaZiBGmgujvQdxc5Bn3QhfyvK5Hsw==";
};
};
"dir-glob-3.0.1" = {
name = "dir-glob";
packageName = "dir-glob";
@@ -16305,15 +16251,6 @@ let
sha512 = "adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==";
};
};
"execa-2.1.0" = {
name = "execa";
packageName = "execa";
version = "2.1.0";
src = fetchurl {
url = "https://registry.npmjs.org/execa/-/execa-2.1.0.tgz";
sha512 = "Y/URAVapfbYy2Xp/gb6A0E7iR8xeqOCXsuuaoMn7A5PzrXUK84E1gyiEfq0wQd/GHA6GsoHWwhNq8anb0mleIw==";
};
};
"execa-5.1.1" = {
name = "execa";
packageName = "execa";
@@ -18663,15 +18600,6 @@ let
sha512 = "0Ia46fDOaT7k4og1PDW4YbodWWr3scS2vAr2lTbsplOt2WkKp0vQbkI9wKis/T5LV/dqPjO3bpS/z6GTJB82LA==";
};
};
"globby-7.1.1" = {
name = "globby";
packageName = "globby";
version = "7.1.1";
src = fetchurl {
url = "https://registry.npmjs.org/globby/-/globby-7.1.1.tgz";
sha512 = "yANWAN2DUcBtuus5Cpd+SKROzXHs2iVXFZt/Ykrfz6SAXqacLX25NZpltE+39ceMexYF4TtEadjuSTw8+3wX4g==";
};
};
"globjoin-0.1.4" = {
name = "globjoin";
packageName = "globjoin";
@@ -26728,24 +26656,6 @@ let
sha512 = "AbegBVI4sh6El+1gNwvD5YIck7nSA36weD7xvIxG4in80j/UoK8AEGaWnnz8v1GxonMCltmlNs5ZKbGvl9b1XQ==";
};
};
"mount-point-3.0.0" = {
name = "mount-point";
packageName = "mount-point";
version = "3.0.0";
src = fetchurl {
url = "https://registry.npmjs.org/mount-point/-/mount-point-3.0.0.tgz";
sha512 = "jAhfD7ZCG+dbESZjcY1SdFVFqSJkh/yGbdsifHcPkvuLRO5ugK0Ssmd9jdATu29BTd4JiN+vkpMzVvsUgP3SZA==";
};
};
"move-file-3.1.0" = {
name = "move-file";
packageName = "move-file";
version = "3.1.0";
src = fetchurl {
url = "https://registry.npmjs.org/move-file/-/move-file-3.1.0.tgz";
sha512 = "4aE3U7CCBWgrQlQDMq8da4woBWDGHioJFiOZ8Ie6Yq2uwYQ9V2kGhTz4x3u6Wc+OU17nw0yc3rJ/lQ4jIiPe3A==";
};
};
"mqtt-4.3.8" = {
name = "mqtt";
packageName = "mqtt";
@@ -27971,15 +27881,6 @@ let
sha512 = "lJxZYlT4DW/bRUtFh1MQIWqmLwQfAxnqWG4HhEdjMlkrJYnJn0Jrr2u3mgxqaWsdiBc76TYkTG/mhrnYTuzfHw==";
};
};
"npm-run-path-3.1.0" = {
name = "npm-run-path";
packageName = "npm-run-path";
version = "3.1.0";
src = fetchurl {
url = "https://registry.npmjs.org/npm-run-path/-/npm-run-path-3.1.0.tgz";
sha512 = "Dbl4A/VfiVGLgQv29URL9xshU8XDY1GeLy+fsaZ1AA8JDSfjvr5P5+pzRbWqRSBxk6/DW7MIh8lTM/PaGnP2kg==";
};
};
"npm-run-path-4.0.1" = {
name = "npm-run-path";
packageName = "npm-run-path";
@@ -28844,15 +28745,6 @@ let
sha512 = "LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==";
};
};
"p-finally-2.0.1" = {
name = "p-finally";
packageName = "p-finally";
version = "2.0.1";
src = fetchurl {
url = "https://registry.npmjs.org/p-finally/-/p-finally-2.0.1.tgz";
sha512 = "vpm09aKwq6H9phqRQzecoDpD8TmVyGw70qmWlyq5onxY7tqyTTFVvxMykxQSQKILBSFlbXpypIw2T1Ml7+DDtw==";
};
};
"p-is-promise-2.1.0" = {
name = "p-is-promise";
packageName = "p-is-promise";
@@ -29753,15 +29645,6 @@ let
sha512 = "dUnb5dXUf+kzhC/W/F4e5/SkluXIFf5VUHolW1Eg1irn1hGWjPGdsRcvYJ1nD6lhk8Ir7VM0bHJKsYTx8Jx9OQ==";
};
};
"path-type-3.0.0" = {
name = "path-type";
packageName = "path-type";
version = "3.0.0";
src = fetchurl {
url = "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz";
sha512 = "T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==";
};
};
"path-type-4.0.0" = {
name = "path-type";
packageName = "path-type";
@@ -34361,15 +34244,6 @@ let
sha512 = "oVTC072yJCXdkjUXAA3rRsRo1op6XfAH1/AXJQznxdwwiYTEvYB6eG9SOU8FeVaEuz+LuoPDYEY5BBMj+uRHVQ==";
};
};
"slash-1.0.0" = {
name = "slash";
packageName = "slash";
version = "1.0.0";
src = fetchurl {
url = "https://registry.npmjs.org/slash/-/slash-1.0.0.tgz";
sha512 = "3TYDR7xWt4dIqV2JauJr+EJeW356RXijHeUlO+8djJ+uBXPn8/2dpzBc8yQhh583sVvc9CvFAeQVgijsH+PNNg==";
};
};
"slash-2.0.0" = {
name = "slash";
packageName = "slash";
@@ -36908,15 +36782,6 @@ let
sha512 = "tk2G5R2KRwBd+ZN0zaEXpmzdKyOYksXwywulIX95MBODjSzMIuQnQ3m8JxgbhnL1LeVo7lqQKsYa1O3Htl7K5g==";
};
};
"trash-8.1.1" = {
name = "trash";
packageName = "trash";
version = "8.1.1";
src = fetchurl {
url = "https://registry.npmjs.org/trash/-/trash-8.1.1.tgz";
sha512 = "r15NUF+BJpDBKLTyOXaB+PhF8qh53TAOTpu/wCt6bqpu488jamsiOV7VdC//yPwAnyGIv1EJgetEnjLNer5XVw==";
};
};
"tree-kill-1.2.2" = {
name = "tree-kill";
packageName = "tree-kill";
@@ -40508,15 +40373,6 @@ let
sha512 = "sqMMuL1rc0FmMBOzCpd0yuy9trqF2yTTVe+E9ogwCSWQCdDEtQUwrZPT6AxqtsFGRNxycgncbP/xmOOSPw5ZUw==";
};
};
"xdg-trashdir-3.1.0" = {
name = "xdg-trashdir";
packageName = "xdg-trashdir";
version = "3.1.0";
src = fetchurl {
url = "https://registry.npmjs.org/xdg-trashdir/-/xdg-trashdir-3.1.0.tgz";
sha512 = "N1XQngeqMBoj9wM4ZFadVV2MymImeiFfYD+fJrNlcVcOHsJFFQe7n3b+aBoTPwARuq2HQxukfzVpQmAk1gN4sQ==";
};
};
"xenvar-0.5.1" = {
name = "xenvar";
packageName = "xenvar";
@@ -46549,91 +46405,6 @@ in
bypassCache = true;
reconstructLock = true;
};
coc-explorer = nodeEnv.buildNodePackage {
name = "coc-explorer";
packageName = "coc-explorer";
version = "0.27.3";
src = fetchurl {
url = "https://registry.npmjs.org/coc-explorer/-/coc-explorer-0.27.3.tgz";
sha512 = "NakEw0nyOvlzqb/8P40ywDMv6mgtyNXOHAEftzLS3K4zgnaKLrt0PsaPmAYUlUfrNw+isGrveMSQB2azjSU0iA==";
};
dependencies = [
sources."@sindresorhus/chunkify-0.2.0"
sources."@sindresorhus/df-3.1.1"
sources."@stroncium/procfs-1.2.1"
sources."aggregate-error-4.0.1"
sources."array-union-1.0.2"
sources."array-uniq-1.0.3"
sources."balanced-match-1.0.2"
sources."brace-expansion-1.1.11"
sources."clean-stack-4.2.0"
sources."concat-map-0.0.1"
sources."cross-spawn-7.0.6"
sources."dir-glob-2.2.2"
sources."end-of-stream-1.4.4"
sources."escape-string-regexp-5.0.0"
sources."execa-2.1.0"
sources."fs.realpath-1.0.0"
sources."get-stream-5.2.0"
sources."glob-7.2.3"
sources."globby-7.1.1"
sources."ignore-3.3.10"
sources."indent-string-5.0.0"
sources."inflight-1.0.6"
sources."inherits-2.0.4"
sources."is-path-inside-4.0.0"
sources."is-stream-2.0.1"
sources."isexe-2.0.0"
sources."merge-stream-2.0.0"
sources."mimic-fn-2.1.0"
sources."minimatch-3.1.2"
(
sources."mount-point-3.0.0"
// {
dependencies = [
sources."@sindresorhus/df-1.0.1"
sources."pify-2.3.0"
];
}
)
sources."move-file-3.1.0"
sources."npm-run-path-3.1.0"
sources."once-1.4.0"
sources."onetime-5.1.2"
sources."os-homedir-1.0.2"
sources."p-finally-2.0.1"
sources."p-map-5.5.0"
sources."path-exists-5.0.0"
sources."path-is-absolute-1.0.1"
sources."path-key-3.1.1"
sources."path-type-3.0.0"
sources."pify-3.0.0"
sources."pinkie-2.0.4"
sources."pinkie-promise-2.0.1"
sources."pump-3.0.2"
sources."shebang-command-2.0.0"
sources."shebang-regex-3.0.0"
sources."signal-exit-3.0.7"
sources."slash-1.0.0"
sources."strip-final-newline-2.0.0"
sources."trash-8.1.1"
sources."user-home-2.0.0"
sources."uuid-8.3.2"
sources."which-2.0.2"
sources."wrappy-1.0.2"
sources."xdg-basedir-4.0.0"
sources."xdg-trashdir-3.1.0"
];
buildInputs = globalBuildInputs;
meta = {
description = "explorer for coc.nvim";
homepage = "https://github.com/weirongxu/coc-explorer";
license = "MIT";
};
production = true;
bypassCache = true;
reconstructLock = true;
};
coc-flutter = nodeEnv.buildNodePackage {
name = "coc-flutter";
packageName = "coc-flutter";