nix-community / neovim-nightly-overlay

[maintainer=@GaetanLepage, @willruggiano]
https://matrix.to/#/#neovim-nightly-overlay:nixos.org
287 stars 39 forks source link

only works built separately from a config? #519

Closed BirdeeHub closed 1 month ago

BirdeeHub commented 1 month ago

Ok, so feel free to close this one, I found out it ONLY works if you use the nixpkgs version that is pinned in the flake...

I had done follows nixpkgs so that it was using my system nixpkgs-unstable channel instead of the one pinned.

Regardless, unless you want to be pinned to that version forever, this is still something you should be aware of.

The original content of this issue follows:

This happens when I try to install the package output by the new flake. It builds on its own via nix build and nix profile install commands but when used via the programs.neovim module or even just putting inputs.neovim-nightly-overlay.packages.${pkgs.system}.neovim into home manager's home.packages option it fails with the below error.

inputs.neovim-nightly-overlay.overlay which is specified in the readme also does not work, it is not even an attribute.

inputs.neovim-nightly-overlay.overlays.default also does not work I cannot add the overlay and then install pkgs.neovim even just to home.packages let alone using a wrapper

Am I missing something?

Also, the one in nixpkgs was 10.0.0 yesterday and now it is back to 0.9.5

Why roll it back?

This means I cant actually install 10.0.0 anymore via my nix config....

If I override the src variable of the neovim-unwrapped in nixpkgs it also gives an error, but a different one, I will list it here after the first one:

       … while evaluating derivation 'neovim-unwrapped-nightly'
         whose name attribute is located at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/pkgs/stdenv/generic/make-derivation.nix:331:7

       … while evaluating attribute 'preConfigure' of derivation 'neovim-unwrapped-nightly'

         at /nix/store/3154ipzky4hp20247dma9lrnrc3jv7xj-source/flake/packages/neovim.nix:87:5:

           86|     inherit src;
           87|     preConfigure = ''
             |     ^
           88|       ${oa.preConfigure}

       … while calling anonymous lambda

         at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/lib/attrsets.nix:1096:10:

         1095|     attrs:
         1096|     map (name: f name attrs.${name}) (attrNames attrs);
             |          ^
         1097|

       … from call site

         at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/lib/attrsets.nix:1096:16:

         1095|     attrs:
         1096|     map (name: f name attrs.${name}) (attrNames attrs);
             |                ^
         1097|

       … while calling anonymous lambda

         at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/pkgs/by-name/ne/neovim-unwrapped/package.nix:172:18:

          171|     '' + lib.concatStrings (lib.mapAttrsToList
          172|       (language: src: ''
             |                  ^
          173|         ln -s \

       … while evaluating derivation 'bash-grammar-neovim-nightly'
         whose name attribute is located at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/pkgs/stdenv/generic/make-derivation.nix:331:7

       … while evaluating attribute 'src' of derivation 'bash-grammar-neovim-nightly'

         at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/pkgs/by-name/ne/neovim-unwrapped/package.nix:175:20:

          174|           ${tree-sitter.buildGrammar {
          175|             inherit language src;
             |                    ^
          176|             version = "neovim-${finalAttrs.version}";

       error: cannot coerce a set to a string
The error from just overriding the src of the neovim-unwrapped derivation in nixpkgs-unstable
    error: builder for '/nix/store/vrvbdsmfkqcx0x5c6jjn33yv8qa01rqv-neovim-unwrapped-0.9.5.drv' failed with exit code 2;
       last 10 log lines:
       > /build/source/src/nvim/lua/treesitter.c:1084:12: error: incompatible types when assigning to type 'TSNode' from type 'int'
       > /build/source/src/nvim/lua/treesitter.c: In function 'node_child_containing_descendant':
       > /build/source/src/nvim/lua/treesitter.c:1095:18: error: invalid initializer
       >  1095 |   TSNode child = ts_node_child_containing_descendant(node, descendant);
       >       |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       > make[2]: *** [src/nvim/CMakeFiles/nvim_bin.dir/build.make:3430: src/nvim/CMakeFiles/nvim_bin.dir/lua/treesitter.c.o] Error 1
       > make[2]: *** Waiting for unfinished jobs....
       > [ 70%] Building C object src/nvim/CMakeFiles/nvim_bin.dir/map.c.o
       > make[1]: *** [CMakeFiles/Makefile2:623: src/nvim/CMakeFiles/nvim_bin.dir/all] Error 2
       > make: *** [Makefile:156: all] Error 2
Metadata
    nix run nixpkgs#nix-info -- -m
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.31, NixOS, 24.05 (Uakari), 24.05.20240522.3f316d2`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - nixpkgs: `/nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source`