nixpkgs/pkgs/applications/editors/vim/common.nix
2017-09-26 22:48:09 +08:00

31 lines
722 B
Nix

{ lib, fetchFromGitHub }:
rec {
version = "8.0.1150";
src = fetchFromGitHub {
owner = "vim";
repo = "vim";
rev = "v${version}";
sha256 = "1k1qkmb2jbymqikrp99q1yjagdf508xzabrw7b08dlh926b2v23j";
};
enableParallelBuilding = true;
hardeningDisable = [ "fortify" ];
postPatch =
# Use man from $PATH; escape sequences are still problematic.
''
substituteInPlace runtime/ftplugin/man.vim \
--replace "/usr/bin/man " "man "
'';
meta = with lib; {
description = "The most popular clone of the VI editor";
homepage = http://www.vim.org;
license = licenses.vim;
maintainers = with maintainers; [ lovek323 ];
platforms = platforms.unix;
};
}