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.vim-clang-format: init at 2019-05-15 #95366
vimPlugins.vim-clang-format: init at 2019-05-15 #95366
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also, please follow https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/vim.section.md#adding-new-plugins-to-nixpkgs
There should be two commits
pkgs/misc/vim-plugins/overrides.nix
Outdated
vim-clang-format = super.vim-clang-format.overrideAttrs(old: { | ||
propagatedBuildInputs = [ clang-tools ]; | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer patching, and avoid adding stuff to a user's path
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, tracking.
My experience falls a bit short here, and I didn't see any other examples in overrides.nix
of how one would patch in a dependency like that 😅
For simplicity's sake I've opted for just the standard plugin for now, and I'm betting a large majority of users for this plugin will already have clang-format
in their environment.
If you're not happy with this approach I'm happy to figure out patching, please point to any docs/examples and I'll got work through it 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I can't find any great examples either, but I'm fine with refining it in a different PR.
I think most people will figure out that they need clang-format
available for it to work.
maybe propagating is the solution, and I've been reviewing too many python packages
036bd70
to
c6c0549
Compare
Ok, fixed, thank you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Result of nixpkgs-review pr 95366 1
Signed-off-by: Sirio Balmelli sirio@b-ad.ch
Motivation for this change
I daily-drive nixpkgs.neovim on Darwin and Linux, and wanted vim-clang-format plugin
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)