mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 07:31:26 +00:00
Merge pull request #13486 from zimbatm/vim-default-config
vim: provide a default vimrc
This commit is contained in:
commit
c80a1baa15
@ -1,5 +1,10 @@
|
|||||||
{ stdenv, fetchFromGitHub, ncurses, gettext, pkgconfig
|
{ stdenv, fetchFromGitHub, fetchurl, ncurses, gettext, pkgconfig
|
||||||
|
# default vimrc
|
||||||
|
, vimrc ? fetchurl {
|
||||||
|
name = "default-vimrc";
|
||||||
|
url = https://projects.archlinux.org/svntogit/packages.git/plain/trunk/archlinux.vim?h=packages/vim?id=68f6d131750aa778807119e03eed70286a17b1cb;
|
||||||
|
sha256 = "18ifhv5q9prd175q3vxbqf6qyvkk6bc7d2lhqdk0q78i68kv9y0c";
|
||||||
|
}
|
||||||
# apple frameworks
|
# apple frameworks
|
||||||
, Carbon, Cocoa }:
|
, Carbon, Cocoa }:
|
||||||
|
|
||||||
@ -25,7 +30,11 @@ stdenv.mkDerivation rec {
|
|||||||
"--enable-nls"
|
"--enable-nls"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = "ln -s $out/bin/vim $out/bin/vi";
|
postInstall = ''
|
||||||
|
ln -s $out/bin/vim $out/bin/vi
|
||||||
|
mkdir -p $out/share/vim
|
||||||
|
cp "${vimrc}" $out/share/vim/vimrc
|
||||||
|
'';
|
||||||
|
|
||||||
crossAttrs = {
|
crossAttrs = {
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
|
Loading…
Reference in New Issue
Block a user