diff --git a/pkgs/applications/editors/vim/plugins/overrides.nix b/pkgs/applications/editors/vim/plugins/overrides.nix index c4ed286b997a0..5c9eb4afe71f8 100644 --- a/pkgs/applications/editors/vim/plugins/overrides.nix +++ b/pkgs/applications/editors/vim/plugins/overrides.nix @@ -19,6 +19,7 @@ arrow-cpp, Cocoa, coc-clangd, + coc-css, coc-diagnostic, coc-pyright, code-minimap, @@ -466,6 +467,11 @@ in src = "${coc-clangd}/lib/node_modules/coc-clangd"; }; + coc-css = buildVimPlugin { + inherit (coc-css) pname version meta; + src = "${coc-css}/lib/node_modules/coc-css"; + }; + coc-diagnostic = buildVimPlugin { inherit (coc-diagnostic) pname version meta; src = "${coc-diagnostic}/lib/node_modules/coc-diagnostic"; @@ -2709,7 +2715,6 @@ in let nodePackageNames = [ "coc-cmake" - "coc-css" "coc-docker" "coc-emmet" "coc-eslint" diff --git a/pkgs/by-name/co/coc-css/package.nix b/pkgs/by-name/co/coc-css/package.nix new file mode 100644 index 0000000000000..bf595960b7e85 --- /dev/null +++ b/pkgs/by-name/co/coc-css/package.nix @@ -0,0 +1,43 @@ +{ + lib, + stdenv, + fetchFromGitHub, + fetchYarnDeps, + yarnConfigHook, + yarnBuildHook, + yarnInstallHook, + nodejs, + nix-update-script, +}: +stdenv.mkDerivation (finalAttrs: { + pname = "coc-css"; + version = "2.1.0"; + + src = fetchFromGitHub { + owner = "neoclide"; + repo = "coc-css"; + rev = finalAttrs.version; + hash = "sha256-ASFg5LM1NbpK+Df1TPs+O13WmZktw+BtfsCJagF5nUc="; + }; + + yarnOfflineCache = fetchYarnDeps { + yarnLock = "${finalAttrs.src}/yarn.lock"; + hash = "sha256-JJXpsccO9MZ0D15JUZtTebX1zUMgwGEzSOm7auw5pQo="; + }; + + nativeBuildInputs = [ + yarnConfigHook + yarnBuildHook + nodejs + yarnInstallHook + ]; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Css language server extension for coc.nvim"; + homepage = "https://github.com/neoclide/coc-css"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ pyrox0 ]; + }; +}) diff --git a/pkgs/development/node-packages/aliases.nix b/pkgs/development/node-packages/aliases.nix index 4e315d23ef5bd..8a4d1de039d6c 100644 --- a/pkgs/development/node-packages/aliases.nix +++ b/pkgs/development/node-packages/aliases.nix @@ -71,6 +71,7 @@ mapAliases { inherit (pkgs) clean-css-cli; # added 2023-08-18 inherit (pkgs) clubhouse-cli; # added 2023-08-18 inherit (pkgs) coc-clangd; # added 2024-06-29 + inherit (pkgs) coc-css; # added 2024-06-29 inherit (pkgs) coc-diagnostic; # added 2024-06-29 coc-imselect = throw "coc-imselect was removed because it was broken"; # added 2023-08-21 inherit (pkgs) coc-pyright; # added 2024-07-14 diff --git a/pkgs/development/node-packages/node-packages.json b/pkgs/development/node-packages/node-packages.json index 9c50df42a0d21..d82919924bdca 100644 --- a/pkgs/development/node-packages/node-packages.json +++ b/pkgs/development/node-packages/node-packages.json @@ -27,7 +27,6 @@ , "cdktf-cli" , "clipboard-cli" , "coc-cmake" -, "coc-css" , "coc-docker" , "coc-emmet" , "coc-eslint" diff --git a/pkgs/development/node-packages/node-packages.nix b/pkgs/development/node-packages/node-packages.nix index ef6e6f2e90e90..dd894d5547b83 100644 --- a/pkgs/development/node-packages/node-packages.nix +++ b/pkgs/development/node-packages/node-packages.nix @@ -60538,23 +60538,6 @@ in bypassCache = true; reconstructLock = true; }; - coc-css = nodeEnv.buildNodePackage { - name = "coc-css"; - packageName = "coc-css"; - version = "2.1.0"; - src = fetchurl { - url = "https://registry.npmjs.org/coc-css/-/coc-css-2.1.0.tgz"; - sha512 = "4DG6chaAQg5pQ4B4WLff04+AzKrQo9+WRDJIl0j0Mmcx7IOPP4QE+m00mDuyowsw4eZvaQ/Mc8bwtg5MbPdIcQ=="; - }; - buildInputs = globalBuildInputs; - meta = { - description = "Css extension for coc.nvim"; - license = "MIT"; - }; - production = true; - bypassCache = true; - reconstructLock = true; - }; coc-docker = nodeEnv.buildNodePackage { name = "coc-docker"; packageName = "coc-docker";