Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nix buildVimPlugin compatibility & support #192

Closed
Anderssorby opened this issue Nov 4, 2021 · 7 comments
Closed

Nix buildVimPlugin compatibility & support #192

Anderssorby opened this issue Nov 4, 2021 · 7 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Anderssorby
Copy link

I've tried a simple nix flake setup for this plugin, but I guess I'm missing some dependencies:
In https://github.com/Anderssorby/lean.nvim/tree/acs/add-nix-flake running nix build

vimplugin-lean.nvim> unpacking sources
vimplugin-lean.nvim> unpacking source archive /nix/store/lvrmjq6x8hxq07v5gn4wbyi9dwfsr4ap-fzjpvalizgp1l9w71ij4ni3nd026c0ln-source
vimplugin-lean.nvim> source root is fzjpvalizgp1l9w71ij4ni3nd026c0ln-source
vimplugin-lean.nvim> patching sources
vimplugin-lean.nvim> configuring
vimplugin-lean.nvim> no configure script, doing nothing
vimplugin-lean.nvim> building
vimplugin-lean.nvim> build flags: SHELL=/nix/store/wv35g5lff84rray15zlzarcqi9fxzz84-bash-4.4-p23/bin/bash
vimplugin-lean.nvim> nvim --noplugin -u scripts/minimal_init.lua -c "lua require'lean'.setup"{}""
vimplugin-lean.nvim> =11;?(BError detected while processing /build/fzjpvalizgp1l9w71ij4ni3nd026c0ln-source/
vimplugin-lean.nvim> scripts/minimal_init.lua:
vimplugin-lean.nvim> line    1:
vimplugin-lean.nvim> E194: No alternate file name to substitute for '#': vim.opt.display = 'lastline'
vimplugin-lean.nvim> line    2:E303: Unable to create directory "/homeless-shelter" for swap file, recovery imp
vimplugin-lean.nvim> ossible: permission denied
vimplugin-lean.nvim> "directory" [New File]Cannot open file "directory"
vimplugin-lean.nvim> E303: Unable to create directory "/homeless-shelter" for swap file, recovery impossible: permission denied
vimplugin-lean.nvim> "=" [New File]Cannot open file "="
vimplugin-lean.nvim> E303: Unable to create directory "/homeless-shelter" for swap file, recovery impossible: permission denied
vimplugin-lean.nvim> "''" [New FileCannot open file "''"
vimplugin-lean.nvim> E480: No match: opt
vimplugin-lean.nvim> line    4:
vimplugin-lean.nvim> E492: Not an editor command: local __file__ = debug.getinfo(1).source:match("@(.
vimplugin-lean.nvim> *)$")
vimplugin-lean.nvim> line    5:
@RaitoBezarius
Copy link

see NixOS/nixpkgs#144282

@Julian
Copy link
Owner

Julian commented Nov 4, 2021

Is there what more to do in this repo after that PR in the nixpkgs repo? Or given that it's now merged are you saying we should close this ticket?

@Julian
Copy link
Owner

Julian commented Nov 8, 2021

Going to close since I assume that was the implication above but if that's not the case and there's something left to be done let me know!

@Julian Julian closed this as completed Nov 8, 2021
@Anderssorby
Copy link
Author

@Julian There is more to be done since that PR didn't solve the problem right away. I'm also using a different function to build the vim plugin which doesn't read the dependencies attribute apparently. I've not looked at this too much yet.

@Julian
Copy link
Owner

Julian commented Nov 10, 2021

Got it. OK, and the request here is basically to add a nix flake to the repo?

@Julian Julian reopened this Nov 10, 2021
@Julian Julian added the enhancement New feature or request label Nov 10, 2021
@Anderssorby
Copy link
Author

Yes, so I can load it into my env without having to wait for nixpkgs.

@Julian Julian added the help wanted Extra attention is needed label Nov 11, 2021
@Julian
Copy link
Owner

Julian commented Nov 5, 2023

Assuming this is even still relevant (given it seems nixpkgs stays relatively up to date with the repo here from what I can tell), and given I don't personally know how to do this or have access to a nixOS machine anymore, going to close this, but if you or anyone is still interested a PR to do whatever is needed is definitely fine with me.

@Julian Julian closed this as not planned Won't fix, can't repro, duplicate, stale Nov 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants