coc-explorer: migrate from nodePackages

pyrox.dev 721d8186 5ba77d6a

verified
+52 -231
+6
pkgs/applications/editors/vim/plugins/cocPlugins.nix
··· 5 5 coc-css, 6 6 coc-diagnostic, 7 7 coc-docker, 8 + coc-explorer, 8 9 coc-git, 9 10 coc-pyright, 10 11 coc-spell-checker, ··· 34 35 coc-docker = buildVimPlugin { 35 36 inherit (coc-docker) pname version meta; 36 37 src = "${coc-docker}/lib/node_modules/coc-docker"; 38 + }; 39 + 40 + coc-explorer = buildVimPlugin { 41 + inherit (coc-explorer) pname version meta; 42 + src = "${coc-explorer}/lib/node_modules/coc-explorer"; 37 43 }; 38 44 39 45 coc-git = buildVimPlugin {
-1
pkgs/applications/editors/vim/plugins/nodePackagePlugins.nix
··· 9 9 "coc-cmake" 10 10 "coc-emmet" 11 11 "coc-eslint" 12 - "coc-explorer" 13 12 "coc-flutter" 14 13 "coc-go" 15 14 "coc-haxe"
+45
pkgs/by-name/co/coc-explorer/package.nix
··· 1 + { 2 + lib, 3 + stdenvNoCC, 4 + fetchFromGitHub, 5 + fetchYarnDeps, 6 + yarnConfigHook, 7 + yarnBuildHook, 8 + yarnInstallHook, 9 + nodejs, 10 + nix-update-script, 11 + }: 12 + stdenvNoCC.mkDerivation (finalAttrs: { 13 + pname = "coc-explorer"; 14 + version = "0.27.3"; 15 + 16 + src = fetchFromGitHub { 17 + owner = "weirongxu"; 18 + repo = "coc-explorer"; 19 + tag = "v${finalAttrs.version}"; 20 + hash = "sha256-lIJloatVEKPM36GE/xpVk+cx8Jz89BWU8qsNjc1eoFw="; 21 + }; 22 + 23 + yarnOfflineCache = fetchYarnDeps { 24 + yarnLock = "${finalAttrs.src}/yarn.lock"; 25 + hash = "sha256-w2La2GTJfHjn6qaVQaHsQp8V2KNx2hqDVuBJUYk6WKg="; 26 + }; 27 + 28 + nativeBuildInputs = [ 29 + yarnConfigHook 30 + yarnBuildHook 31 + yarnInstallHook 32 + nodejs 33 + ]; 34 + 35 + yarnBuildScript = "build:pack"; 36 + 37 + passthru.updateScript = nix-update-script { }; 38 + 39 + meta = { 40 + description = "Explorer for coc.nvim"; 41 + homepage = "https://github.com/weirongxu/coc-explorer"; 42 + license = lib.licenses.mit; 43 + maintainers = with lib.maintainers; [ pyrox0 ]; 44 + }; 45 + })
+1
pkgs/development/node-packages/aliases.nix
··· 74 74 inherit (pkgs) coc-css; # added 2024-06-29 75 75 inherit (pkgs) coc-diagnostic; # added 2024-06-29 76 76 inherit (pkgs) coc-docker; # added 2025-10-01 77 + inherit (pkgs) coc-explorer; # added 2025-10-01 77 78 inherit (pkgs) coc-git; # added 2025-10-01 78 79 coc-imselect = throw "coc-imselect was removed because it was broken"; # added 2023-08-21 79 80 inherit (pkgs) coc-pyright; # added 2024-07-14
-1
pkgs/development/node-packages/node-packages.json
··· 26 26 , "coc-cmake" 27 27 , "coc-emmet" 28 28 , "coc-eslint" 29 - , "coc-explorer" 30 29 , "coc-flutter" 31 30 , "coc-go" 32 31 , "coc-haxe"
-229
pkgs/development/node-packages/node-packages.nix
··· 4829 4829 sha512 = "XJfwUVUKDHF5ugKwIcxEgc9k8b7HbznCp6eUfWgu710hMPNIO4aw4/zB5RogDQz8nd6gyCDpU9O/m6qYEWY6yQ=="; 4830 4830 }; 4831 4831 }; 4832 - "@sindresorhus/chunkify-0.2.0" = { 4833 - name = "_at_sindresorhus_slash_chunkify"; 4834 - packageName = "@sindresorhus/chunkify"; 4835 - version = "0.2.0"; 4836 - src = fetchurl { 4837 - url = "https://registry.npmjs.org/@sindresorhus/chunkify/-/chunkify-0.2.0.tgz"; 4838 - sha512 = "mOAiwqu+bIIkNFDCXFJxZEmF9p9WHfSBbpLLmgysYnNkEs7aA0/AvU9+6zLHFqI7JnqdqwAuWu8CbGwGIszRdw=="; 4839 - }; 4840 - }; 4841 - "@sindresorhus/df-1.0.1" = { 4842 - name = "_at_sindresorhus_slash_df"; 4843 - packageName = "@sindresorhus/df"; 4844 - version = "1.0.1"; 4845 - src = fetchurl { 4846 - url = "https://registry.npmjs.org/@sindresorhus/df/-/df-1.0.1.tgz"; 4847 - sha512 = "1Hyp7NQnD/u4DSxR2DGW78TF9k7R0wZ8ev0BpMAIzA6yTQSHqNb5wTuvtcPYf4FWbVse2rW7RgDsyL8ua2vXHw=="; 4848 - }; 4849 - }; 4850 - "@sindresorhus/df-3.1.1" = { 4851 - name = "_at_sindresorhus_slash_df"; 4852 - packageName = "@sindresorhus/df"; 4853 - version = "3.1.1"; 4854 - src = fetchurl { 4855 - url = "https://registry.npmjs.org/@sindresorhus/df/-/df-3.1.1.tgz"; 4856 - sha512 = "SME/vtXaJcnQ/HpeV6P82Egy+jThn11IKfwW8+/XVoRD0rmPHVTeKMtww1oWdVnMykzVPjmrDN9S8NBndPEHCQ=="; 4857 - }; 4858 - }; 4859 4832 "@sindresorhus/is-0.14.0" = { 4860 4833 name = "_at_sindresorhus_slash_is"; 4861 4834 packageName = "@sindresorhus/is"; ··· 5549 5522 sha512 = "Pb6M8TDO9DtSVla9yXSTAxmo9GVEouq5P40DWXdOie69bXogZTkgvopCq+yEvTMA0F6PEvdJmbtTV3ccIp11VQ=="; 5550 5523 }; 5551 5524 }; 5552 - "@stroncium/procfs-1.2.1" = { 5553 - name = "_at_stroncium_slash_procfs"; 5554 - packageName = "@stroncium/procfs"; 5555 - version = "1.2.1"; 5556 - src = fetchurl { 5557 - url = "https://registry.npmjs.org/@stroncium/procfs/-/procfs-1.2.1.tgz"; 5558 - sha512 = "X1Iui3FUNZP18EUvysTHxt+Avu2nlVzyf90YM8OYgP6SGzTzzX/0JgObfO1AQQDzuZtNNz29bVh8h5R97JrjxA=="; 5559 - }; 5560 - }; 5561 5525 "@stylelint/postcss-css-in-js-0.37.3" = { 5562 5526 name = "_at_stylelint_slash_postcss-css-in-js"; 5563 5527 packageName = "@stylelint/postcss-css-in-js"; ··· 8697 8661 src = fetchurl { 8698 8662 url = "https://registry.npmjs.org/array-to-sentence/-/array-to-sentence-1.1.0.tgz"; 8699 8663 sha512 = "YkwkMmPA2+GSGvXj1s9NZ6cc2LBtR+uSeWTy2IGi5MR1Wag4DdrcjTxA/YV/Fw+qKlBeXomneZgThEbm/wvZbw=="; 8700 - }; 8701 - }; 8702 - "array-union-1.0.2" = { 8703 - name = "array-union"; 8704 - packageName = "array-union"; 8705 - version = "1.0.2"; 8706 - src = fetchurl { 8707 - url = "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz"; 8708 - sha512 = "Dxr6QJj/RdU/hCaBjOfxW+q6lyuVE6JFWIrAUpuOOhoJJoQ99cUn3igRaHVB5P9WrgFVN0FfArM3x0cueOU8ng=="; 8709 8664 }; 8710 8665 }; 8711 8666 "array-union-2.1.0" = { ··· 14442 14397 sha512 = "2xMCmOoMrdQIPHdsTawECdNPwlVFB9zGcz3kuhmBO6U3oU+UQjsue0i8ayLKpgBcm+hcXPMVSGUN9d+pvJ6+VQ=="; 14443 14398 }; 14444 14399 }; 14445 - "dir-glob-2.2.2" = { 14446 - name = "dir-glob"; 14447 - packageName = "dir-glob"; 14448 - version = "2.2.2"; 14449 - src = fetchurl { 14450 - url = "https://registry.npmjs.org/dir-glob/-/dir-glob-2.2.2.tgz"; 14451 - sha512 = "f9LBi5QWzIW3I6e//uxZoLBlUt9kcp66qo0sSCxL6YZKc75R1c4MFCoe/LaZiBGmgujvQdxc5Bn3QhfyvK5Hsw=="; 14452 - }; 14453 - }; 14454 14400 "dir-glob-3.0.1" = { 14455 14401 name = "dir-glob"; 14456 14402 packageName = "dir-glob"; ··· 16305 16251 sha512 = "adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA=="; 16306 16252 }; 16307 16253 }; 16308 - "execa-2.1.0" = { 16309 - name = "execa"; 16310 - packageName = "execa"; 16311 - version = "2.1.0"; 16312 - src = fetchurl { 16313 - url = "https://registry.npmjs.org/execa/-/execa-2.1.0.tgz"; 16314 - sha512 = "Y/URAVapfbYy2Xp/gb6A0E7iR8xeqOCXsuuaoMn7A5PzrXUK84E1gyiEfq0wQd/GHA6GsoHWwhNq8anb0mleIw=="; 16315 - }; 16316 - }; 16317 16254 "execa-5.1.1" = { 16318 16255 name = "execa"; 16319 16256 packageName = "execa"; ··· 18661 18598 src = fetchurl { 18662 18599 url = "https://registry.npmjs.org/globby/-/globby-14.1.0.tgz"; 18663 18600 sha512 = "0Ia46fDOaT7k4og1PDW4YbodWWr3scS2vAr2lTbsplOt2WkKp0vQbkI9wKis/T5LV/dqPjO3bpS/z6GTJB82LA=="; 18664 - }; 18665 - }; 18666 - "globby-7.1.1" = { 18667 - name = "globby"; 18668 - packageName = "globby"; 18669 - version = "7.1.1"; 18670 - src = fetchurl { 18671 - url = "https://registry.npmjs.org/globby/-/globby-7.1.1.tgz"; 18672 - sha512 = "yANWAN2DUcBtuus5Cpd+SKROzXHs2iVXFZt/Ykrfz6SAXqacLX25NZpltE+39ceMexYF4TtEadjuSTw8+3wX4g=="; 18673 18601 }; 18674 18602 }; 18675 18603 "globjoin-0.1.4" = { ··· 26728 26656 sha512 = "AbegBVI4sh6El+1gNwvD5YIck7nSA36weD7xvIxG4in80j/UoK8AEGaWnnz8v1GxonMCltmlNs5ZKbGvl9b1XQ=="; 26729 26657 }; 26730 26658 }; 26731 - "mount-point-3.0.0" = { 26732 - name = "mount-point"; 26733 - packageName = "mount-point"; 26734 - version = "3.0.0"; 26735 - src = fetchurl { 26736 - url = "https://registry.npmjs.org/mount-point/-/mount-point-3.0.0.tgz"; 26737 - sha512 = "jAhfD7ZCG+dbESZjcY1SdFVFqSJkh/yGbdsifHcPkvuLRO5ugK0Ssmd9jdATu29BTd4JiN+vkpMzVvsUgP3SZA=="; 26738 - }; 26739 - }; 26740 - "move-file-3.1.0" = { 26741 - name = "move-file"; 26742 - packageName = "move-file"; 26743 - version = "3.1.0"; 26744 - src = fetchurl { 26745 - url = "https://registry.npmjs.org/move-file/-/move-file-3.1.0.tgz"; 26746 - sha512 = "4aE3U7CCBWgrQlQDMq8da4woBWDGHioJFiOZ8Ie6Yq2uwYQ9V2kGhTz4x3u6Wc+OU17nw0yc3rJ/lQ4jIiPe3A=="; 26747 - }; 26748 - }; 26749 26659 "mqtt-4.3.8" = { 26750 26660 name = "mqtt"; 26751 26661 packageName = "mqtt"; ··· 27971 27881 sha512 = "lJxZYlT4DW/bRUtFh1MQIWqmLwQfAxnqWG4HhEdjMlkrJYnJn0Jrr2u3mgxqaWsdiBc76TYkTG/mhrnYTuzfHw=="; 27972 27882 }; 27973 27883 }; 27974 - "npm-run-path-3.1.0" = { 27975 - name = "npm-run-path"; 27976 - packageName = "npm-run-path"; 27977 - version = "3.1.0"; 27978 - src = fetchurl { 27979 - url = "https://registry.npmjs.org/npm-run-path/-/npm-run-path-3.1.0.tgz"; 27980 - sha512 = "Dbl4A/VfiVGLgQv29URL9xshU8XDY1GeLy+fsaZ1AA8JDSfjvr5P5+pzRbWqRSBxk6/DW7MIh8lTM/PaGnP2kg=="; 27981 - }; 27982 - }; 27983 27884 "npm-run-path-4.0.1" = { 27984 27885 name = "npm-run-path"; 27985 27886 packageName = "npm-run-path"; ··· 28842 28743 src = fetchurl { 28843 28744 url = "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz"; 28844 28745 sha512 = "LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow=="; 28845 - }; 28846 - }; 28847 - "p-finally-2.0.1" = { 28848 - name = "p-finally"; 28849 - packageName = "p-finally"; 28850 - version = "2.0.1"; 28851 - src = fetchurl { 28852 - url = "https://registry.npmjs.org/p-finally/-/p-finally-2.0.1.tgz"; 28853 - sha512 = "vpm09aKwq6H9phqRQzecoDpD8TmVyGw70qmWlyq5onxY7tqyTTFVvxMykxQSQKILBSFlbXpypIw2T1Ml7+DDtw=="; 28854 28746 }; 28855 28747 }; 28856 28748 "p-is-promise-2.1.0" = { ··· 29753 29645 sha512 = "dUnb5dXUf+kzhC/W/F4e5/SkluXIFf5VUHolW1Eg1irn1hGWjPGdsRcvYJ1nD6lhk8Ir7VM0bHJKsYTx8Jx9OQ=="; 29754 29646 }; 29755 29647 }; 29756 - "path-type-3.0.0" = { 29757 - name = "path-type"; 29758 - packageName = "path-type"; 29759 - version = "3.0.0"; 29760 - src = fetchurl { 29761 - url = "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz"; 29762 - sha512 = "T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg=="; 29763 - }; 29764 - }; 29765 29648 "path-type-4.0.0" = { 29766 29649 name = "path-type"; 29767 29650 packageName = "path-type"; ··· 34361 34244 sha512 = "oVTC072yJCXdkjUXAA3rRsRo1op6XfAH1/AXJQznxdwwiYTEvYB6eG9SOU8FeVaEuz+LuoPDYEY5BBMj+uRHVQ=="; 34362 34245 }; 34363 34246 }; 34364 - "slash-1.0.0" = { 34365 - name = "slash"; 34366 - packageName = "slash"; 34367 - version = "1.0.0"; 34368 - src = fetchurl { 34369 - url = "https://registry.npmjs.org/slash/-/slash-1.0.0.tgz"; 34370 - sha512 = "3TYDR7xWt4dIqV2JauJr+EJeW356RXijHeUlO+8djJ+uBXPn8/2dpzBc8yQhh583sVvc9CvFAeQVgijsH+PNNg=="; 34371 - }; 34372 - }; 34373 34247 "slash-2.0.0" = { 34374 34248 name = "slash"; 34375 34249 packageName = "slash"; ··· 36908 36782 sha512 = "tk2G5R2KRwBd+ZN0zaEXpmzdKyOYksXwywulIX95MBODjSzMIuQnQ3m8JxgbhnL1LeVo7lqQKsYa1O3Htl7K5g=="; 36909 36783 }; 36910 36784 }; 36911 - "trash-8.1.1" = { 36912 - name = "trash"; 36913 - packageName = "trash"; 36914 - version = "8.1.1"; 36915 - src = fetchurl { 36916 - url = "https://registry.npmjs.org/trash/-/trash-8.1.1.tgz"; 36917 - sha512 = "r15NUF+BJpDBKLTyOXaB+PhF8qh53TAOTpu/wCt6bqpu488jamsiOV7VdC//yPwAnyGIv1EJgetEnjLNer5XVw=="; 36918 - }; 36919 - }; 36920 36785 "tree-kill-1.2.2" = { 36921 36786 name = "tree-kill"; 36922 36787 packageName = "tree-kill"; ··· 40506 40371 src = fetchurl { 40507 40372 url = "https://registry.npmjs.org/xdg-portable/-/xdg-portable-7.3.0.tgz"; 40508 40373 sha512 = "sqMMuL1rc0FmMBOzCpd0yuy9trqF2yTTVe+E9ogwCSWQCdDEtQUwrZPT6AxqtsFGRNxycgncbP/xmOOSPw5ZUw=="; 40509 - }; 40510 - }; 40511 - "xdg-trashdir-3.1.0" = { 40512 - name = "xdg-trashdir"; 40513 - packageName = "xdg-trashdir"; 40514 - version = "3.1.0"; 40515 - src = fetchurl { 40516 - url = "https://registry.npmjs.org/xdg-trashdir/-/xdg-trashdir-3.1.0.tgz"; 40517 - sha512 = "N1XQngeqMBoj9wM4ZFadVV2MymImeiFfYD+fJrNlcVcOHsJFFQe7n3b+aBoTPwARuq2HQxukfzVpQmAk1gN4sQ=="; 40518 40374 }; 40519 40375 }; 40520 40376 "xenvar-0.5.1" = { ··· 46543 46399 meta = { 46544 46400 description = "Eslint extension for coc.nvim"; 46545 46401 homepage = "https://github.com/neoclide/coc-eslint#readme"; 46546 - license = "MIT"; 46547 - }; 46548 - production = true; 46549 - bypassCache = true; 46550 - reconstructLock = true; 46551 - }; 46552 - coc-explorer = nodeEnv.buildNodePackage { 46553 - name = "coc-explorer"; 46554 - packageName = "coc-explorer"; 46555 - version = "0.27.3"; 46556 - src = fetchurl { 46557 - url = "https://registry.npmjs.org/coc-explorer/-/coc-explorer-0.27.3.tgz"; 46558 - sha512 = "NakEw0nyOvlzqb/8P40ywDMv6mgtyNXOHAEftzLS3K4zgnaKLrt0PsaPmAYUlUfrNw+isGrveMSQB2azjSU0iA=="; 46559 - }; 46560 - dependencies = [ 46561 - sources."@sindresorhus/chunkify-0.2.0" 46562 - sources."@sindresorhus/df-3.1.1" 46563 - sources."@stroncium/procfs-1.2.1" 46564 - sources."aggregate-error-4.0.1" 46565 - sources."array-union-1.0.2" 46566 - sources."array-uniq-1.0.3" 46567 - sources."balanced-match-1.0.2" 46568 - sources."brace-expansion-1.1.11" 46569 - sources."clean-stack-4.2.0" 46570 - sources."concat-map-0.0.1" 46571 - sources."cross-spawn-7.0.6" 46572 - sources."dir-glob-2.2.2" 46573 - sources."end-of-stream-1.4.4" 46574 - sources."escape-string-regexp-5.0.0" 46575 - sources."execa-2.1.0" 46576 - sources."fs.realpath-1.0.0" 46577 - sources."get-stream-5.2.0" 46578 - sources."glob-7.2.3" 46579 - sources."globby-7.1.1" 46580 - sources."ignore-3.3.10" 46581 - sources."indent-string-5.0.0" 46582 - sources."inflight-1.0.6" 46583 - sources."inherits-2.0.4" 46584 - sources."is-path-inside-4.0.0" 46585 - sources."is-stream-2.0.1" 46586 - sources."isexe-2.0.0" 46587 - sources."merge-stream-2.0.0" 46588 - sources."mimic-fn-2.1.0" 46589 - sources."minimatch-3.1.2" 46590 - ( 46591 - sources."mount-point-3.0.0" 46592 - // { 46593 - dependencies = [ 46594 - sources."@sindresorhus/df-1.0.1" 46595 - sources."pify-2.3.0" 46596 - ]; 46597 - } 46598 - ) 46599 - sources."move-file-3.1.0" 46600 - sources."npm-run-path-3.1.0" 46601 - sources."once-1.4.0" 46602 - sources."onetime-5.1.2" 46603 - sources."os-homedir-1.0.2" 46604 - sources."p-finally-2.0.1" 46605 - sources."p-map-5.5.0" 46606 - sources."path-exists-5.0.0" 46607 - sources."path-is-absolute-1.0.1" 46608 - sources."path-key-3.1.1" 46609 - sources."path-type-3.0.0" 46610 - sources."pify-3.0.0" 46611 - sources."pinkie-2.0.4" 46612 - sources."pinkie-promise-2.0.1" 46613 - sources."pump-3.0.2" 46614 - sources."shebang-command-2.0.0" 46615 - sources."shebang-regex-3.0.0" 46616 - sources."signal-exit-3.0.7" 46617 - sources."slash-1.0.0" 46618 - sources."strip-final-newline-2.0.0" 46619 - sources."trash-8.1.1" 46620 - sources."user-home-2.0.0" 46621 - sources."uuid-8.3.2" 46622 - sources."which-2.0.2" 46623 - sources."wrappy-1.0.2" 46624 - sources."xdg-basedir-4.0.0" 46625 - sources."xdg-trashdir-3.1.0" 46626 - ]; 46627 - buildInputs = globalBuildInputs; 46628 - meta = { 46629 - description = "explorer for coc.nvim"; 46630 - homepage = "https://github.com/weirongxu/coc-explorer"; 46631 46402 license = "MIT"; 46632 46403 }; 46633 46404 production = true;