mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-11-09 16:18:34 +01:00
coc-texlab: migrate from nodePackages
This commit is contained in:
parent
ef2f4bdc39
commit
012cccc129
|
|
@ -33,6 +33,7 @@
|
|||
coc-stylelint,
|
||||
coc-sumneko-lua,
|
||||
coc-tabnine,
|
||||
coc-texlab,
|
||||
coc-toml,
|
||||
}:
|
||||
final: prev: {
|
||||
|
|
@ -204,6 +205,11 @@ final: prev: {
|
|||
src = "${coc-tabnine}/lib/node_modules/coc-tabnine";
|
||||
};
|
||||
|
||||
coc-texlab = buildVimPlugin {
|
||||
inherit (coc-texlab) pname version meta;
|
||||
src = "${coc-texlab}/lib/node_modules/coc-texlab";
|
||||
};
|
||||
|
||||
coc-toml = buildVimPlugin {
|
||||
pname = "coc-toml";
|
||||
inherit (coc-toml) version meta;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ let
|
|||
nodePackageNames = [
|
||||
"coc-go"
|
||||
"coc-ltex"
|
||||
"coc-texlab"
|
||||
"coc-tsserver"
|
||||
"coc-ultisnips"
|
||||
"coc-vimlsp"
|
||||
|
|
|
|||
71
pkgs/by-name/co/coc-texlab/package.nix
Normal file
71
pkgs/by-name/co/coc-texlab/package.nix
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
{
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
fetchFromGitHub,
|
||||
fetchYarnDeps,
|
||||
yarnConfigHook,
|
||||
yarnBuildHook,
|
||||
yarnInstallHook,
|
||||
nodejs,
|
||||
nix-update-script,
|
||||
esbuild,
|
||||
buildGoModule,
|
||||
}:
|
||||
let
|
||||
esbuild' =
|
||||
let
|
||||
version = "0.25.0";
|
||||
in
|
||||
esbuild.override {
|
||||
buildGoModule =
|
||||
args:
|
||||
buildGoModule (
|
||||
args
|
||||
// {
|
||||
inherit version;
|
||||
src = fetchFromGitHub {
|
||||
owner = "evanw";
|
||||
repo = "esbuild";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-L9jm94Epb22hYsU3hoq1lZXb5aFVD4FC4x2qNt0DljA=";
|
||||
};
|
||||
vendorHash = "sha256-+BfxCyg0KkDQpHt/wycy/8CTG6YBA/VJvJFhhzUnSiQ=";
|
||||
}
|
||||
);
|
||||
};
|
||||
in
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "coc-texlab";
|
||||
version = "0-unstable-2025-07-22";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "fannheyward";
|
||||
repo = "coc-texlab";
|
||||
rev = "a4ad3f259d94086f4971b22b97833e8a72226782";
|
||||
hash = "sha256-6W+L/LdF6g0Xwhv+9VtjjfzRjlbN7OaqHbSXtO3cfZ0=";
|
||||
};
|
||||
|
||||
yarnOfflineCache = fetchYarnDeps {
|
||||
inherit (finalAttrs) src;
|
||||
hash = "sha256-g2IwfO1IMktTtflR2m7c99wOYLJYmD2I7hBbCNy+XFA=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
yarnConfigHook
|
||||
yarnBuildHook
|
||||
yarnInstallHook
|
||||
nodejs
|
||||
esbuild'
|
||||
];
|
||||
|
||||
env.ESBUILD_BINARY_PATH = lib.getExe esbuild';
|
||||
|
||||
passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };
|
||||
|
||||
meta = {
|
||||
description = "TexLab extension for coc.nvim";
|
||||
homepage = "https://github.com/fannheyward/coc-texlab";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ pyrox0 ];
|
||||
};
|
||||
})
|
||||
|
|
@ -107,6 +107,7 @@ mapAliases {
|
|||
inherit (pkgs) coc-stylelint; # Added 2025-11-05
|
||||
inherit (pkgs) coc-sumneko-lua; # Added 2025-11-05
|
||||
inherit (pkgs) coc-tabnine; # Added 2025-11-05
|
||||
inherit (pkgs) coc-texlab; # Added 2025-11-05
|
||||
inherit (pkgs) coc-toml;
|
||||
coc-tslint = throw "coc-tslint was removed because it was deprecated upstream; coc-eslint offers comparable features for eslint, which replaced tslint"; # Added 2024-10-18
|
||||
coc-tslint-plugin = throw "coc-tslint-plugin was removed because it was deprecated upstream; coc-eslint offers comparable features for eslint, which replaced tslint"; # Added 2024-10-18
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@
|
|||
, "clipboard-cli"
|
||||
, "coc-go"
|
||||
, "coc-ltex"
|
||||
, "coc-texlab"
|
||||
, "coc-tsserver"
|
||||
, "coc-ultisnips"
|
||||
, "coc-vimlsp"
|
||||
|
|
|
|||
18
pkgs/development/node-packages/node-packages.nix
generated
18
pkgs/development/node-packages/node-packages.nix
generated
|
|
@ -37038,24 +37038,6 @@ in
|
|||
bypassCache = true;
|
||||
reconstructLock = true;
|
||||
};
|
||||
coc-texlab = nodeEnv.buildNodePackage {
|
||||
name = "coc-texlab";
|
||||
packageName = "coc-texlab";
|
||||
version = "3.3.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/coc-texlab/-/coc-texlab-3.3.0.tgz";
|
||||
sha512 = "MV/zLxI6jvu/IWS3/dyc8Dsgz9ypO86hSAHwjRbDGTc/V9t8jTPUnI4E1hzmsF8bfIjxnUU/oyITX9tLTOnCOQ==";
|
||||
};
|
||||
buildInputs = globalBuildInputs;
|
||||
meta = {
|
||||
description = "TexLab extension for coc.nvim";
|
||||
homepage = "https://github.com/fannheyward/coc-texlab#readme";
|
||||
license = "MIT";
|
||||
};
|
||||
production = true;
|
||||
bypassCache = true;
|
||||
reconstructLock = true;
|
||||
};
|
||||
coc-tsserver = nodeEnv.buildNodePackage {
|
||||
name = "coc-tsserver";
|
||||
packageName = "coc-tsserver";
|
||||
|
|
|
|||
Loading…
Reference in a new issue