mirror of
https://github.com/nix-community/nixvim.git
synced 2026-08-28 10:15:49 -05:00
The build.extraFiles wrapper plugin is built via
`pkgs.runCommandLocal "nvim-config"`, which sets only the derivation
`name`, not `pname`. Recent nixpkgs (as of 2026-04) extended
`pkgs.vim-pack-dir` to map `plugin.pname` over the start/opt plugin
list when checking for an nvim-treesitter / nvim-treesitter-legacy
conflict, so building any standalone nixvim package against current
nixpkgs unstable fails with `attribute 'pname' missing`.
Setting `pname = "nvim-config"` on this derivation explicitly
restores the pre-2026-04 behavior without touching nixpkgs.
Repro:
nix build --impure --expr '
let
nixpkgs = builtins.getFlake "github:NixOS/nixpkgs/nixos-unstable";
nixvim = builtins.getFlake "github:nix-community/nixvim";
system = "x86_64-linux";
in
(nixvim.legacyPackages.${system}.makeNixvim { })
'