forked from mirrors/nixpkgs
Remove wrapVim
I don't see a reason for having wrapVim function and vimWrapper and vimHugeXWrapper packages. If you need a system vimrc, whats wrong with ``environment.etc."vimrc".text`` ? Also strictly speaking ``vimHugeXWrapper`` didn't wrap, X-version properly. I.e. running ``gvim`` have console vim version.
This commit is contained in:
parent
8d9ff87c14
commit
abf19df497
|
@ -1,32 +0,0 @@
|
|||
{ stdenv, makeWrapper, writeText, vim, vimrc }:
|
||||
|
||||
let
|
||||
|
||||
vimrcfile = writeText "vimrc" vimrc;
|
||||
|
||||
p = builtins.parseDrvName vim.name;
|
||||
|
||||
in stdenv.mkDerivation rec {
|
||||
name = "${p.name}-with-vimrc-${p.version}";
|
||||
|
||||
buildInputs = [ makeWrapper vim vimrcfile ];
|
||||
|
||||
phases = [ "installPhase" ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp -r ${vim}/* $out/
|
||||
|
||||
chmod u+w $out/bin
|
||||
chmod u+w $out/share/vim
|
||||
|
||||
ln -s ${vimrcfile} $out/share/vim/vimrc
|
||||
wrapProgram $out/bin/vim --set VIM "$out/share/vim"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "The most popular clone of the VI editor";
|
||||
homepage = http://www.vim.org;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
|
@ -9830,12 +9830,8 @@ let
|
|||
|
||||
macvim = callPackage ../applications/editors/vim/macvim.nix { };
|
||||
|
||||
vimWrapper = wrapVim vim;
|
||||
|
||||
vimHugeX = vim_configurable;
|
||||
|
||||
vimHugeXWrapper = wrapVim vimHugeX;
|
||||
|
||||
vim_configurable = callPackage ../applications/editors/vim/configurable.nix {
|
||||
inherit (pkgs) fetchurl fetchhg stdenv ncurses pkgconfig gettext
|
||||
composableDerivation lib config glib gtk python perl tcl ruby;
|
||||
|
@ -9868,11 +9864,6 @@ let
|
|||
flags = [ "python" "X11" ]; # only flag "X11" by now
|
||||
});
|
||||
|
||||
wrapVim = vim: import ../applications/editors/vim/wrapper.nix {
|
||||
inherit stdenv makeWrapper writeText vim;
|
||||
vimrc = config.vim.vimrc or "";
|
||||
};
|
||||
|
||||
virtviewer = callPackage ../applications/virtualization/virt-viewer {
|
||||
gtkvnc = gtkvnc.override { enableGTK3 = true; };
|
||||
spice_gtk = spice_gtk.override { enableGTK3 = true; };
|
||||
|
|
Loading…
Reference in a new issue