Re: [Nix-dev] Configuring vim with override

2016-03-02 Thread Nikita Karetnikov
 Wed, Mar 02, 2016 at 10:00:00AM +1100, Jookia wrote:
> vim_configurable is used like this:
> 
>   myVim = pkgs.vim_configurable.merge {
> features = "huge"; # one of  tiny, small, normal, big or huge
> gui = "gtk";
> cfg = {
>   pythonSupport = true;
>   python3Support = true;
>   multibyteSupport = true;
> };
> flags = {
>   xim.enable = true;
> };
>   };

When I tried something similar today, rehash && vim --version didn't show
+cscope.  But then I decided (finally!) to check the hash of my current vim and
the one that was built.  They were different.  Probably one of my previous
attempts did work, but I failed to notice.  So now the question is why the
current vim package doesn't point to the right version.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Configuring vim with override

2016-03-01 Thread Jookia
On Wed, Mar 02, 2016 at 12:08:05AM +0300, Nikita Karetnikov wrote:
> 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:
>
> [...]
>
> No luck, though.  What's the right way?

vim_configurable is used like this:

  myVim = pkgs.vim_configurable.merge {
features = "huge"; # one of  tiny, small, normal, big or huge
gui = "gtk";
cfg = {
  pythonSupport = true;
  python3Support = true;
  multibyteSupport = true;
};
flags = {
  xim.enable = true;
};
  };

Jookia.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Configuring vim with override

2016-03-01 Thread Nikita Karetnikov
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=override+filename%3Aconfiguration.nix+language%3Anix

No luck, though.  What's the right way?
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev