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
vimPlugins.galaxyline-nvim: init at 2020-12-14 #106931
Conversation
Result of 2 packages built:
|
When I use this plugin to customize neovim, it fails to build. This is the expression I used: { pkgs }:
pkgs.neovim.override {
configure = {
packages.myVimPackage = with pkgs.vimPlugins; {
start = [ galaxyline-nvim ];
opt = [ ];
};
};
} This is the output:
|
I forgot to mention that this plugin requires neovim 0.5. I see many plugins on nixpkgs that also require 0.5, and I assumed that it would be ok to add this plugin too. I'm not sure why the OfBorg failed, maybe because I'm not a trusted user? In any case, if you want to test it with 0.5, is relatively easy since a flake.nix was added to the neovim repo: An adapted version of your expression that works: # to test it:
# nix-build --no-out-link ./test-nvim.nix --arg pkgs 'import ./nixpkgs {}'
{ pkgs }:
let
neovim-nightly = pkgs.neovim-unwrapped.overrideAttrs (oa: {
version = "master";
src = pkgs.fetchFromGitHub {
owner = "neovim";
repo = "neovim";
rev = "52e660e8570346d28f5c7f5dde0a5ca9b614a801";
sha256 = "0swrk1q56ri5bil8sap6nnv2filfch72011bbd7f6yfhhy9gk6nx";
};
buildInputs = oa.buildInputs ++ ([
pkgs.tree-sitter
]);
cmakeFlags = oa.cmakeFlags ++ [
"-DUSE_BUNDLED=OFF"
];
});
in
pkgs.wrapNeovim neovim-nightly {
configure = {
packages.myVimPackage = with pkgs.vimPlugins; {
start = [ galaxyline-nvim ];
opt = [ ];
};
};
} |
I have not communicated about the flake.nix on master (yet) but happy to see it is helpful :) NB: someone voiced concern at packaging polugins targeting neovim-unstable but now it is fine I think. Maybe we should move those to a flake in the long run since they can cause some churn in the main repo. |
The adapted version of your expression does succeed to build. It does give give an error message when I start neovim. I'll include the error message, but I doubt its an issue on your end. As for the OfBorg failure, its not an issue on your end. At the time you submitted your pull request there was a typo in an attribute name in nixpkgs master. For a period of ~3 hours all OfBorg checks failed. Here's the error message I got when starting neovim:
|
@teto thanks for the flake, it is really helpful, in fact, I decided to move to 0.5 when I saw it in the neovim repo :) @samb96 thanks for testing, unfortunately I don't know why you are getting that error, I cannot reproduce it, I just tested it again with latest master and all looks good on my side. Also, thanks for pointing out about the OfBorg error, I wasn't aware |
@GrahamcOfBorg build vimPlugins.galaxyline-nvim |
@ofborg eval |
This is a semi-automatic executed nixpkgs-review which is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch). Result of 2 packages built:
|
Motivation for this change
Add https://github.com/glepnir/galaxyline.nvim
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)