How to easily change nixpkgs so that nixvim can build neovim against it ? #3590
Unanswered
amalgame21
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
First, thanks for your tip here, I am able to build nixvim (without any modules yet) in i686-linux.
However it is inconvenient to change nixpkgs for nixvim to build.
The problem is that, the current
nixpkgscannot be used by nixivm to build neovim on i686-linux system without modification.Since
pytest-regressionhave some build test that is not working in i686, and neovim is depending onpytest-regressionsomehow, I have to disable it for neovim to build successfully like this PR doesHowever the PR have not merged yet so I have to do it myself.
Take my repo as example: https://github.com/amalgame21/nixvim_i686_testing/blob/main/flake.nix (This example is not working)
I patched the
nixpkgsinput and then pass that correspondingpkgsintomakeNixvimWithModule. However it has no effect at all.I also tried overlay with
overrideAttrswhich is much easier but also unsuccessful.The only working solution for me is that I have to patch the nixpkgs prior, then point the
inputs.nixpkgs.urlto the nixpkgs flake that already have that patched, and then useinputs.nixvim.inputs.nixpkgs.follows = "nixpkgs"for nixvim to build against that nixpkgs. That means I have to fork the nixpkgs or clone it to local repository to do so and have to update them manually.But why passing the
pkgsintomakeNixvimWithModulehas no effect on building neovim?Beta Was this translation helpful? Give feedback.
All reactions