Unverified Commit 721d8186 authored by dish's avatar dish
Browse files

coc-explorer: migrate from nodePackages

parent 5ba77d6a
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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";
+0 −1
Original line number Diff line number Diff line
@@ -9,7 +9,6 @@ let
    "coc-cmake"
    "coc-emmet"
    "coc-eslint"
    "coc-explorer"
    "coc-flutter"
    "coc-go"
    "coc-haxe"
+45 −0
Original line number Diff line number Diff line
{
  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 ];
  };
})
+1 −0
Original line number Diff line number Diff line
@@ -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
+0 −1
Original line number Diff line number Diff line
@@ -26,7 +26,6 @@
, "coc-cmake"
, "coc-emmet"
, "coc-eslint"
, "coc-explorer"
, "coc-flutter"
, "coc-go"
, "coc-haxe"
Loading