From cbb7b09bad82e5a7b8a1dce70948652da05276fc Mon Sep 17 00:00:00 2001 From: Matthieu Coudron <886074+teto@users.noreply.github.com> Date: Mon, 15 Jan 2024 17:34:43 +0100 Subject: [PATCH] neovim-unwrapped: enable structuredAttrs To make treesitter-parsers referencable via finalAttrs, making it easier to modify/explore via repl --- pkgs/applications/editors/neovim/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/editors/neovim/default.nix b/pkgs/applications/editors/neovim/default.nix index 82bb404fd24a..aa5b007c4d1b 100644 --- a/pkgs/applications/editors/neovim/default.nix +++ b/pkgs/applications/editors/neovim/default.nix @@ -68,6 +68,8 @@ in { pname = "neovim-unwrapped"; version = "0.9.5"; + __structuredAttrs = true; + src = fetchFromGitHub { owner = "neovim"; repo = "neovim"; @@ -84,7 +86,7 @@ in { dontFixCmake = true; - inherit lua; + inherit lua treesitter-parsers; buildInputs = [ gperf @@ -171,7 +173,7 @@ in { }}/parser \ $out/lib/nvim/parser/${language}.so '') - treesitter-parsers); + finalAttrs.treesitter-parsers); shellHook='' export VIMRUNTIME=$PWD/runtime