mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-07 22:55:58 +01:00
modules/default.nix: make patches work on built plugins
This commit is contained in:
parent
9c93e9a9c0
commit
977939a167
2 changed files with 13 additions and 7 deletions
|
@ -25,8 +25,6 @@ Release notes for release 0.7
|
||||||
[vim.ui.smartcolumn.setupOpts.custom_colorcolumn](#opt-vim.ui.smartcolumn.setupOpts.custom_colorcolumn)
|
[vim.ui.smartcolumn.setupOpts.custom_colorcolumn](#opt-vim.ui.smartcolumn.setupOpts.custom_colorcolumn)
|
||||||
using the wrong type `int` instead of the expected type `string`.
|
using the wrong type `int` instead of the expected type `string`.
|
||||||
|
|
||||||
- Fix unused src and version attributes in `buildPlug`.
|
|
||||||
|
|
||||||
[horriblename](https://github.com/horriblename):
|
[horriblename](https://github.com/horriblename):
|
||||||
|
|
||||||
- Fix broken treesitter-context keybinds in visual mode
|
- Fix broken treesitter-context keybinds in visual mode
|
||||||
|
|
|
@ -36,11 +36,19 @@ inputs: {
|
||||||
buildPlug = {pname, ...} @ attrs: let
|
buildPlug = {pname, ...} @ attrs: let
|
||||||
src = getAttr ("plugin-" + pname) inputs;
|
src = getAttr ("plugin-" + pname) inputs;
|
||||||
in
|
in
|
||||||
pkgs.runCommand "${pname}-${src.shortRev or src.shortDirtyRev or "dirty"}" attrs
|
pkgs.stdenvNoCC.mkDerivation ({
|
||||||
''
|
inherit src;
|
||||||
mkdir -p $out
|
version = src.shortRev or src.shortDirtyRev or "dirty";
|
||||||
cp -r ${src}/. $out
|
installPhase = ''
|
||||||
'';
|
runHook preInstall
|
||||||
|
|
||||||
|
mkdir -p $out
|
||||||
|
cp -r . $out
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
// attrs);
|
||||||
|
|
||||||
noBuildPlug = {pname, ...} @ attrs: let
|
noBuildPlug = {pname, ...} @ attrs: let
|
||||||
input = getAttr ("plugin-" + pname) inputs;
|
input = getAttr ("plugin-" + pname) inputs;
|
||||||
|
|
Loading…
Reference in a new issue