[Nix-dev] Configuring vim with override
Nikita Karetnikov
nikita at karetnikov.org
Tue Mar 1 22:08:05 CET 2016
I'd like to enable cscope and clipboard support in vim by editing only the
configuration.nix file. If I understand the NixOS manual correctly, it should
look like this:
environment.systemPackages = [ (pkgs.emacs.override { gtk = pkgs.gtk3; }) ];
https://nixos.org/nixos/manual/index.html#sec-customising-packages
So I've tried something similar:
environment.systemPackages.pkgs =
[ ...
(vimNox.override {
cscopeSupport = true;
clipboardSupport = true;
})
...
]
I use vimNox here since nox shows it as vim_configurable, which is defined like
this:
https://github.com/NixOS/nixpkgs/blob/e2f7744f80e444c3e7b8680854de31fdc5c81543/pkgs/applications/editors/vim/configurable.nix#L148
This doesn't work, however. I've also tried using vim, vimHugeX,
vim_configurable with various solutions from GitHub:
https://github.com/NixOS/nixpkgs/search?utf8=%E2%9C%93&q=override+filename%3Aconfiguration.nix+language%3Anix
No luck, though. What's the right way?
More information about the nix-dev
mailing list