Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

coc-css: migrate from nodePackages #323474

Merged
merged 1 commit into from
Nov 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion pkgs/applications/editors/vim/plugins/overrides.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
arrow-cpp,
Cocoa,
coc-clangd,
coc-css,
coc-diagnostic,
coc-pyright,
code-minimap,
Expand Down Expand Up @@ -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";
Expand Down Expand Up @@ -2709,7 +2715,6 @@ in
let
nodePackageNames = [
"coc-cmake"
"coc-css"
"coc-docker"
"coc-emmet"
"coc-eslint"
Expand Down
43 changes: 43 additions & 0 deletions pkgs/by-name/co/coc-css/package.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
})
1 change: 1 addition & 0 deletions pkgs/development/node-packages/aliases.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion pkgs/development/node-packages/node-packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
, "cdktf-cli"
, "clipboard-cli"
, "coc-cmake"
, "coc-css"
, "coc-docker"
, "coc-emmet"
, "coc-eslint"
Expand Down
17 changes: 0 additions & 17 deletions pkgs/development/node-packages/node-packages.nix

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.