vimPlugins.markdown-preview-nvim: use mkYarnModules
This commit is contained in:
parent
b74826751e
commit
5212d482ac
|
@ -11,6 +11,8 @@
|
|||
, substituteAll
|
||||
|
||||
# Language dependencies
|
||||
, fetchYarnDeps
|
||||
, mkYarnModules
|
||||
, python3
|
||||
, rustPlatform
|
||||
|
||||
|
@ -730,8 +732,14 @@ self: super: {
|
|||
|
||||
markdown-preview-nvim = let
|
||||
# We only need its dependencies `node-modules`.
|
||||
nodeDep = nodePackages."markdown-preview-nvim-../../applications/editors/vim/plugins/markdown-preview-nvim".overrideAttrs {
|
||||
dontNpmInstall = true;
|
||||
nodeDep = mkYarnModules rec {
|
||||
inherit (super.markdown-preview-nvim) pname version;
|
||||
packageJSON = ./markdown-preview-nvim/package.json;
|
||||
yarnLock = "${super.markdown-preview-nvim.src}/yarn.lock";
|
||||
offlineCache = fetchYarnDeps {
|
||||
inherit yarnLock;
|
||||
hash = "sha256-kzc9jm6d9PJ07yiWfIOwqxOTAAydTpaLXVK6sEWM8gg=";
|
||||
};
|
||||
};
|
||||
in super.markdown-preview-nvim.overrideAttrs {
|
||||
patches = [
|
||||
|
@ -741,7 +749,7 @@ self: super: {
|
|||
})
|
||||
];
|
||||
postInstall = ''
|
||||
ln -s ${nodeDep}/lib/node_modules/markdown-preview/node_modules $out/app
|
||||
ln -s ${nodeDep}/node_modules $out/app
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ nodejs ];
|
||||
|
|
|
@ -172,7 +172,6 @@
|
|||
, "lv_font_conv"
|
||||
, "madoko"
|
||||
, "markdown-link-check"
|
||||
, {"markdown-preview-nvim": "../../applications/editors/vim/plugins/markdown-preview-nvim"}
|
||||
, "mastodon-bot"
|
||||
, "mathjax"
|
||||
, "meat"
|
||||
|
|
1113
pkgs/development/node-packages/node-packages.nix
generated
1113
pkgs/development/node-packages/node-packages.nix
generated
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue