Files
Juha KestiandAustin Horstman d404af65e9 modules/top-level/files: set pname on nvim-config wrapper plugin
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 { })
  '
2026-04-26 15:52:56 +00:00
..