Unverified Commit 0f955c4b authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

coc-css: migrate from nodePackages (#323474)

parents b018e066 0239e4af
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@
  arrow-cpp,
  Cocoa,
  coc-clangd,
  coc-css,
  coc-diagnostic,
  coc-pyright,
  code-minimap,
@@ -453,6 +454,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";
@@ -2724,7 +2730,6 @@ in
  let
    nodePackageNames = [
      "coc-cmake"
      "coc-css"
      "coc-docker"
      "coc-emmet"
      "coc-eslint"
+43 −0
Original line number Diff line number Diff line
{
  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 −0
Original line number Diff line number Diff line
@@ -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
+0 −1
Original line number Diff line number Diff line
@@ -27,7 +27,6 @@
, "cdktf-cli"
, "clipboard-cli"
, "coc-cmake"
, "coc-css"
, "coc-docker"
, "coc-emmet"
, "coc-eslint"
+0 −17
Original line number Diff line number Diff line
@@ -60484,23 +60484,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";