mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-07 19:25: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)
|
||||
using the wrong type `int` instead of the expected type `string`.
|
||||
|
||||
- Fix unused src and version attributes in `buildPlug`.
|
||||
|
||||
[horriblename](https://github.com/horriblename):
|
||||
|
||||
- Fix broken treesitter-context keybinds in visual mode
|
||||
|
|
|
@ -36,11 +36,19 @@ inputs: {
|
|||
buildPlug = {pname, ...} @ attrs: let
|
||||
src = getAttr ("plugin-" + pname) inputs;
|
||||
in
|
||||
pkgs.runCommand "${pname}-${src.shortRev or src.shortDirtyRev or "dirty"}" attrs
|
||||
''
|
||||
mkdir -p $out
|
||||
cp -r ${src}/. $out
|
||||
'';
|
||||
pkgs.stdenvNoCC.mkDerivation ({
|
||||
inherit src;
|
||||
version = src.shortRev or src.shortDirtyRev or "dirty";
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out
|
||||
cp -r . $out
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
}
|
||||
// attrs);
|
||||
|
||||
noBuildPlug = {pname, ...} @ attrs: let
|
||||
input = getAttr ("plugin-" + pname) inputs;
|
||||
|
|
Loading…
Reference in a new issue