Skip to content

Nix cant build the derivation when using pkgs.vimUtils.buildVimPlugin #28

Description

@JustAlternateIDZ

When trying to build your neovim plugin in nix using the pkgs.vimUtils.buildVimPlugin

  extraPlugins = with pkgs.vimPlugins; [
    go-nvim
    (pkgs.vimUtils.buildVimPlugin {
      name = "guihua";
      src = pkgs.fetchFromGitHub {
        owner = "ray-x";
        repo = "guihua.lua";
        rev = "87bea7b98429405caf2a0ce4d029b027bb017c70";
        hash = "sha256-R/ckeCwzWixvL7q2+brvqcvfSK9Mx8pu6zOFgh2lde4=";
      };
    })
  ];
error: builder for '/nix/store/ip5fcs4pzlqrs4jclam4y7hx8985gk15-vimplugin-guihua.drv' failed with exit code 1;
       last 25 log lines:
       >   - guihua.listviewctrl
       >   - guihua.highlight
       >   - guihua.textview
       >   - guihua.rect
       >   - guihua.sprite
       >   - guihua.floating
       >   - guihua.icons
       >   - guihua.hsl
       >   - guihua.panel
       >   - guihua.view
       >   - guihua.location
       >   - guihua.helper
       >   - guihua.input
       >   - guihua.log
       >   - guihua.util
       >   - guihua.maps
       >   - guihua.listview
       > All lua modules were checked.
       >
       > Require check failed for the following modules:
       >   - fzy.fzy-lua-native
       >   - fzy.native
       >
       > Checkout https://nixos.org/manual/nixpkgs/unstable/#testing-neovim-plugins-neovim-require-check
       > ======================================================
       For full logs, run:
         nix log /nix/store/ip5fcs4pzlqrs4jclam4y7hx8985gk15-vimplugin-guihua.drv
error: 1 dependencies of derivation '/nix/store/4ziibaan9limj3dbvn1hsf2xr4aj64p9-neovim-0.11.2.drv' failed to build
error: 1 dependencies of derivation '/nix/store/26lhgdcbr6f0hl8wsbzix9027wxy29kd-nixvim.drv' failed to build

Here is the full log error :

structuredAttrs is enabled
Sourcing vim-gen-doc-hook
Sourcing vim-command-check-hook.sh
Using vimCommandCheckHook
Sourcing neovim-require-check-hook.sh
Using neovimRequireCheckHook
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/h8lfz2sha6ykyrilm6vn2119c4pqcpr5-source
source root is source
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
Running phase: checkPhase
@nix { "action": "setPhase", "phase": "checkPhase" }
no Makefile or custom checkPhase, doing nothing
Running phase: installPhase
@nix { "action": "setPhase", "phase": "installPhase" }
Running phase: fixupPhase
@nix { "action": "setPhase", "phase": "fixupPhase" }
Executing vimPluginGenTags
No docs available for /nix/store/k8s2y1lph3gp63wbnpp6bq3l7h8rb4mz-vimplugin-guihua/.
Finished executing vimPluginGenTags
checking for references to /private/tmp/nix-build-vimplugin-guihua.drv-0/ in /nix/store/k8s2y1lph3gp63wbnpp6bq3l7h8rb4mz-vimplugin-guihua...
patching script interpreter paths in /nix/store/k8s2y1lph3gp63wbnpp6bq3l7h8rb4mz-vimplugin-guihua
Running phase: vimCommandCheckHook
@nix { "action": "setPhase", "phase": "vimCommandCheckHook" }
Executing vimCommandCheckHook
Running phase: neovimRequireCheckHook
@nix { "action": "setPhase", "phase": "neovimRequireCheckHook" }
Executing neovimRequireCheckHook
nvimRequireCheck is empty; entering discovery mode
Running module discovery in source directory...
lua/middleclass.lua
lua/fzy/init.lua
lua/fzy/quicksort.lua
lua/fzy/fzy-lua-native.lua
lua/fzy/original.lua
lua/fzy/native.lua
lua/fzy/test.lua
lua/guihua/float_test.lua
lua/guihua/textviewctrl.lua
lua/guihua/lspkind.lua
lua/guihua/init.lua
lua/guihua/viewctrl.lua
lua/guihua/gui.lua
lua/guihua/listviewctrl.lua
lua/guihua/highlight.lua
lua/guihua/textview.lua
lua/guihua/rect.lua
lua/guihua/sprite.lua
lua/guihua/floating.lua
lua/guihua/icons.lua
lua/guihua/hsl.lua
lua/guihua/panel.lua
lua/guihua/view.lua
lua/guihua/location.lua
lua/guihua/helper.lua
lua/guihua/input.lua
lua/guihua/log.lua
lua/guihua/util.lua
lua/guihua/maps.lua
lua/guihua/listview.lua
Discovered modules: middleclass fzy fzy.quicksort fzy.fzy-lua-native fzy.original fzy.native fzy.test guihua.float_test guihua.textviewctrl guihua.lspkind guihua guihua.viewctrl guihua.gui guihua.listviewctrl guihua.highlight guihua.textview guihua.rect guihua.sprite guihua.floating guihua.icons guihua.hsl guihua.panel guihua.view guihua.location guihua.helper guihua.input guihua.log guihua.util guihua.maps guihua.listview
Starting require checks
Attempting to require module: middleclass
Entering Ex mode.  Type "visual" to go to Normal mode.
:Successfully required module: middleclass
Attempting to require module: fzy
Entering Ex mode.  Type "visual" to go to Normal mode.
:Successfully required module: fzy
Attempting to require module: fzy.quicksort
Entering Ex mode.  Type "visual" to go to Normal mode.
:Successfully required module: fzy.quicksort
Attempting to require module: fzy.fzy-lua-native
Error detected while processing pre-vimrc command line:
E5108: Error executing lua module '.init' not found:
	no field package.preload['.init']
	no file './/init.lua'
	no file '/nix/store/gyyngc8p5kikk9ssa6lm88mkp8xl5c6h-luajit-2.1.1741730670/share/luajit-2.1//init.lua'
	no file '/usr/local/share/lua/5.1//init.lua'
	no file '/usr/local/share/lua/5.1//init/init.lua'
	no file '/nix/store/gyyngc8p5kikk9ssa6lm88mkp8xl5c6h-luajit-2.1.1741730670/share/lua/5.1//init.lua'
	no file '/nix/store/gyyngc8p5kikk9ssa6lm88mkp8xl5c6h-luajit-2.1.1741730670/share/lua/5.1//init/init.lua'
	no file './/init.so'
	no file '/usr/local/lib/lua/5.1//init.so'
	no file '/nix/store/gyyngc8p5kikk9ssa6lm88mkp8xl5c6h-luajit-2.1.1741730670/lib/lua/5.1//init.so'
	no file '/usr/local/lib/lua/5.1/loadall.so'
	no file './.so'
	no file '/usr/local/lib/lua/5.1/.so'
	no file '/nix/store/gyyngc8p5kikk9ssa6lm88mkp8xl5c6h-luajit-2.1.1741730670/lib/lua/5.1/.so'
	no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
	[C]: at 0x01014bd67c
	[C]: in function 'require'
	[string ":lua"]:1: in main chunk
Entering Ex mode.  Type "visual" to go to Normal mode.
:Failed to require module: fzy.fzy-lua-native
Attempting to require module: fzy.original
Entering Ex mode.  Type "visual" to go to Normal mode.
:Successfully required module: fzy.original
Attempting to require module: fzy.native
Error detected while processing pre-vimrc command line:
E5108: Error executing lua ...63wbnpp6bq3l7h8rb4mz-vimplugin-guihua/lua/fzy/native.lua:0: dlopen(/nix/store/k8s2y1lph3gp63wbnpp6bq3l7h8rb4mz-vimplugin-guihua/lua/fzy/./static/libfzy-darwin-arm64.so, 0x0005): tried: '/nix/store/k8s2y1lph3gp63wbnpp6bq3l7h8rb4mz-vimplugin-guihua/lua/fzy/./static/libfzy-darwin-arm64.so' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/nix/store/k8s2y1lph3gp63wbnpp6bq3l7h8rb4mz-vimplugin-guihua/lua/fzy/./static/libfzy-darwin-arm64.so' (no such file), '/nix/store/k8s2y1lph3gp63wbnpp6bq3l7h8rb4mz-vimplugin-guihua/lua/fzy/./static/libfzy-darwin-arm64.so' (no such file), '/nix/store/k8s2y1lph3gp63wbnpp6bq3l7h8rb4mz-vimplugin-guihua/lua/fzy/static/libfzy-darwin-arm64.so' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/nix/store/k8s2y1lph3gp63wbnpp6bq3l7h8rb4mz-vimplugin-guihua/lua/fzy/static/libfzy-darwin-arm64.so' (no such file), '/nix/store/k8s2y1lph3gp63wbnpp6bq3l7h8rb4mz-vimplugin-guihua/lua/fzy/static/libfzy-darwin-arm64.so' (no such file)
stack traceback:
	[C]: in function 'load'
	...63wbnpp6bq3l7h8rb4mz-vimplugin-guihua/lua/fzy/native.lua: in function <...63wbnpp6bq3l7h8rb4mz-vimplugin-guihua/lua/fzy/native.lua:0>
	[C]: in function 'require'
	[string ":lua"]:1: in main chunk
Entering Ex mode.  Type "visual" to go to Normal mode.
:Failed to require module: fzy.native
Attempting to require module: fzy.test
result: 
{ {
    fzy = {
      pos = { 13, 14, 15, 16, 17, 18, 19, 20 },
      score = 7.665
    },
    meta = {
      uri = "http://www.lua.org/versions.html#5.3"
    },
    text = "Lua 5.3 was released on 12 Jan 2015"
  }, {
    fzy = {
      pos = { 13, 14, 15, 16, 17, 18, 19, 20 },
      score = 7.665
    },
    meta = {
      uri = "http://www.lua.org/versions.html#5.2"
    },
    text = "Lua 5.2 was released on 16 Dec 2011"
  }, {
    fzy = {
      pos = { 13, 14, 15, 16, 17, 18, 19, 20 },
      score = 7.665
    },
    meta = {
      uri = "http://www.lua.org/versions.html#5.1"
    },
    text = "Lua 5.1 was released on 21 Feb 2006"
  } }
Entering Ex mode.  Type "visual" to go to Normal mode.
:Successfully required module: fzy.test
Attempting to require module: guihua.float_test
Entering Ex mode.  Type "visual" to go to Normal mode.
:Successfully required module: guihua.float_test
Attempting to require module: guihua.textviewctrl
Entering Ex mode.  Type "visual" to go to Normal mode.
:Successfully required module: guihua.textviewctrl
Attempting to require module: guihua.lspkind
Entering Ex mode.  Type "visual" to go to Normal mode.
:Successfully required module: guihua.lspkind
Attempting to require module: guihua
Entering Ex mode.  Type "visual" to go to Normal mode.
:Successfully required module: guihua
Attempting to require module: guihua.viewctrl
Entering Ex mode.  Type "visual" to go to Normal mode.
:Successfully required module: guihua.viewctrl
Attempting to require module: guihua.gui
Entering Ex mode.  Type "visual" to go to Normal mode.
:Successfully required module: guihua.gui
Attempting to require module: guihua.listviewctrl
Entering Ex mode.  Type "visual" to go to Normal mode.
:Successfully required module: guihua.listviewctrl
Attempting to require module: guihua.highlight
Entering Ex mode.  Type "visual" to go to Normal mode.
:Successfully required module: guihua.highlight
Attempting to require module: guihua.textview
Entering Ex mode.  Type "visual" to go to Normal mode.
:Successfully required module: guihua.textview
Attempting to require module: guihua.rect
Entering Ex mode.  Type "visual" to go to Normal mode.
:Successfully required module: guihua.rect
Attempting to require module: guihua.sprite
Entering Ex mode.  Type "visual" to go to Normal mode.
:Successfully required module: guihua.sprite
Attempting to require module: guihua.floating
Entering Ex mode.  Type "visual" to go to Normal mode.
:Successfully required module: guihua.floating
Attempting to require module: guihua.icons
Entering Ex mode.  Type "visual" to go to Normal mode.
:Successfully required module: guihua.icons
Attempting to require module: guihua.hsl
Entering Ex mode.  Type "visual" to go to Normal mode.
:Successfully required module: guihua.hsl
Attempting to require module: guihua.panel
Entering Ex mode.  Type "visual" to go to Normal mode.
:Successfully required module: guihua.panel
Attempting to require module: guihua.view
Entering Ex mode.  Type "visual" to go to Normal mode.
:Successfully required module: guihua.view
Attempting to require module: guihua.location
Entering Ex mode.  Type "visual" to go to Normal mode.
:Successfully required module: guihua.location
Attempting to require module: guihua.helper
Entering Ex mode.  Type "visual" to go to Normal mode.
:Successfully required module: guihua.helper
Attempting to require module: guihua.input
Entering Ex mode.  Type "visual" to go to Normal mode.
:Successfully required module: guihua.input
Attempting to require module: guihua.log
Entering Ex mode.  Type "visual" to go to Normal mode.
:Successfully required module: guihua.log
Attempting to require module: guihua.util
Entering Ex mode.  Type "visual" to go to Normal mode.
:Successfully required module: guihua.util
Attempting to require module: guihua.maps
Entering Ex mode.  Type "visual" to go to Normal mode.
:Successfully required module: guihua.maps
Attempting to require module: guihua.listview
Entering Ex mode.  Type "visual" to go to Normal mode.
:Successfully required module: guihua.listview

======================================================
�[0;32mRequire check succeeded for the following modules:�[0m
  �[0;32m- middleclass�[0m
  �[0;32m- fzy�[0m
  �[0;32m- fzy.quicksort�[0m
  �[0;32m- fzy.original�[0m
  �[0;32m- fzy.test�[0m
  �[0;32m- guihua.float_test�[0m
  �[0;32m- guihua.textviewctrl�[0m
  �[0;32m- guihua.lspkind�[0m
  �[0;32m- guihua�[0m
  �[0;32m- guihua.viewctrl�[0m
  �[0;32m- guihua.gui�[0m
  �[0;32m- guihua.listviewctrl�[0m
  �[0;32m- guihua.highlight�[0m
  �[0;32m- guihua.textview�[0m
  �[0;32m- guihua.rect�[0m
  �[0;32m- guihua.sprite�[0m
  �[0;32m- guihua.floating�[0m
  �[0;32m- guihua.icons�[0m
  �[0;32m- guihua.hsl�[0m
  �[0;32m- guihua.panel�[0m
  �[0;32m- guihua.view�[0m
  �[0;32m- guihua.location�[0m
  �[0;32m- guihua.helper�[0m
  �[0;32m- guihua.input�[0m
  �[0;32m- guihua.log�[0m
  �[0;32m- guihua.util�[0m
  �[0;32m- guihua.maps�[0m
  �[0;32m- guihua.listview�[0m
All lua modules were checked.

�[0;31mRequire check failed for the following modules:�[0m
  �[0;31m- fzy.fzy-lua-native�[0m
  �[0;31m- fzy.native�[0m

�[0;31mCheckout https://nixos.org/manual/nixpkgs/unstable/#testing-neovim-plugins-neovim-require-check�[0m
======================================================

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions