shaunsingh / nix-darwin-dotfiles

Dotfiles managed via Nix-Darwin and Mk-Darwin-System, for schoolwork and kotlin, lua, and rust programming
391 stars 27 forks source link

build failed on neovim overlay #28

Closed liamrohan closed 1 year ago

liamrohan commented 1 year ago

hey, trying this out on a fresh install of macOS ventura (apple silicon), but the build fails on nix build ~/nix-dotfiles#darwinConfigurations.mimi.system --extra-experimental-features nix-command --extra-experimental-features flakes

error: builder for '/nix/store/04py1zz6y2wxjzqfaaplgd5x5xml0gn8-neovim-unwrapped-06d1e86.drv' failed with exit code 1;
       last 10 log lines:
       > patching file src/nvim/generators/gen_keysets.lua
       > Reversed (or previously applied) patch detected!  Assume -R? [n]
       > Apply anyway? [n]
       > Skipping patch.
       > 2 out of 2 hunks ignored -- saving rejects to file src/nvim/generators/gen_keysets.lua.rej
       > patching file src/nvim/generators/gen_options.lua
       > Reversed (or previously applied) patch detected!  Assume -R? [n]
       > Apply anyway? [n]
       > Skipping patch.
       > 2 out of 2 hunks ignored -- saving rejects to file src/nvim/generators/gen_options.lua.rej
       For full logs, run 'nix log /nix/store/04py1zz6y2wxjzqfaaplgd5x5xml0gn8-neovim-unwrapped-06d1e86.drv'.
error: 1 dependencies of derivation '/nix/store/1zfslkjyvzglp3sgiyn2hbdx21gxgng3-config.fish.drv' failed to build
error: 1 dependencies of derivation '/nix/store/8hf4v3v9mljcg1sv1xdz0d1397rfwag6-home-manager-applications.drv' failed to build
error: 1 dependencies of derivation '/nix/store/1mxj9l2ycj02bjg63v29r2s6kikscv2j-home-manager-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/6fasyk6zr3ax0jlrb9p3mhwvpnpkc7mx-man-paths.drv' failed to build
error: 1 dependencies of derivation '/nix/store/frlvnvny1i35s45js31mizcllgrfs01l-neovim-unwrapped-06d1e86-fish-completions.drv' failed to build
error: 1 dependencies of derivation '/nix/store/c5zpbdq2c2g2161j2mkd8ij1w3835l7c-home-manager-generation.drv' failed to build
error: 1 dependencies of derivation '/nix/store/1rn07wgbzr19xq9w1ifvjr0rf7nrg2vs-user-environment.drv' failed to build
error: 1 dependencies of derivation '/nix/store/fv2aw4k4vgzsqrwkak19jhb1mjmdrd7k-activation-mimi.drv' failed to build
error: 1 dependencies of derivation '/nix/store/icid3mqv12h5vlcxq0b49z49g3dpw4ja-darwin-system-23.05.20230123.3954218+darwin4.87b9d09.drv' failed to build

--show-trace below:

@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/47qfgiby0nlg00nc5f10vdvzb3rxjpca-nw6dxhi81zjjrqzvgr5lzmf1dnzjgq78-source
source root is nw6dxhi81zjjrqzvgr5lzmf1dnzjgq78-source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
applying patch /nix/store/jnp9n2x9cdvl47da3656illrd3p2qvb5-system_rplugin_manifest.patch
patching file runtime/autoload/remote/host.vim
patching file runtime/plugin/rplugin.vim
applying patch /nix/store/k7nfml473rvcs6sm5ir3yl9c9yc9sf4d-neovim-build-make-generated-source-files-reproducible.patch
patching file CMakeLists.txt
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file CMakeLists.txt.rej
patching file runtime/lua/vim/shared.lua
Hunk #1 succeeded at 485 with fuzz 1 (offset 38 lines).
patching file scripts/genvimvim.lua
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file scripts/genvimvim.lua.rej
patching file src/nvim/CMakeLists.txt
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file src/nvim/CMakeLists.txt.rej
patching file src/nvim/api/keysets.lua
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file src/nvim/api/keysets.lua.rej
patching file src/nvim/auevents.lua
Hunk #1 FAILED at 125.
1 out of 1 hunk FAILED -- saving rejects to file src/nvim/auevents.lua.rej
patching file src/nvim/generators/gen_api_dispatch.lua
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file src/nvim/generators/gen_api_dispatch.lua.rej
patching file src/nvim/generators/gen_eval.lua
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file src/nvim/generators/gen_eval.lua.rej
patching file src/nvim/generators/gen_events.lua
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file src/nvim/generators/gen_events.lua.rej
patching file src/nvim/generators/gen_keysets.lua
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file src/nvim/generators/gen_keysets.lua.rej
patching file src/nvim/generators/gen_options.lua
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file src/nvim/generators/gen_options.lua.rej
bash-3.2$ clear

bash-3.2$ nix log /nix/store/04py1zz6y2wxjzqfaaplgd5x5xml0gn8-neovim-unwrapped-06d1e86.drv
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/47qfgiby0nlg00nc5f10vdvzb3rxjpca-nw6dxhi81zjjrqzvgr5lzmf1dnzjgq78-source
source root is nw6dxhi81zjjrqzvgr5lzmf1dnzjgq78-source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
applying patch /nix/store/jnp9n2x9cdvl47da3656illrd3p2qvb5-system_rplugin_manifest.patch
patching file runtime/autoload/remote/host.vim
patching file runtime/plugin/rplugin.vim
applying patch /nix/store/k7nfml473rvcs6sm5ir3yl9c9yc9sf4d-neovim-build-make-generated-source-files-reproducible.patch
patching file CMakeLists.txt
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file CMakeLists.txt.rej
patching file runtime/lua/vim/shared.lua
Hunk #1 succeeded at 485 with fuzz 1 (offset 38 lines).
patching file scripts/genvimvim.lua
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file scripts/genvimvim.lua.rej
patching file src/nvim/CMakeLists.txt
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file src/nvim/CMakeLists.txt.rej
patching file src/nvim/api/keysets.lua
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file src/nvim/api/keysets.lua.rej
patching file src/nvim/auevents.lua
Hunk #1 FAILED at 125.
1 out of 1 hunk FAILED -- saving rejects to file src/nvim/auevents.lua.rej
patching file src/nvim/generators/gen_api_dispatch.lua
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file src/nvim/generators/gen_api_dispatch.lua.rej
patching file src/nvim/generators/gen_eval.lua
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file src/nvim/generators/gen_eval.lua.rej
patching file src/nvim/generators/gen_events.lua
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file src/nvim/generators/gen_events.lua.rej
patching file src/nvim/generators/gen_keysets.lua
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file src/nvim/generators/gen_keysets.lua.rej
patching file src/nvim/generators/gen_options.lua
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file src/nvim/generators/gen_options.lua.rej

any idea?

shaunsingh commented 1 year ago

This is due to a bug with the mvim-nightly overlay that we use (https://github.com/nix-community/neovim-nightly-overlay/issues/164). I have a fix for it locally I haven't pushed it yet though as I need to test my config a little more.

For now you can replace every instance of neovim-nightly in modules/home.nix with just neovim. This will install stable neovim instead of the nightly version of neovim

shaunsingh commented 1 year ago

I removed neovim overlay for now, should be fixed