lol
1{ lib, fetchFromGitHub }:
2rec {
3 version = "9.0.2048";
4
5 src = fetchFromGitHub {
6 owner = "vim";
7 repo = "vim";
8 rev = "v${version}";
9 hash = "sha256-zR2iPiD4/gf5BnxYoe3cx2ebGWE1P2bY4Cg15gveFgg=";
10 };
11
12 enableParallelBuilding = true;
13 enableParallelInstalling = false;
14
15 hardeningDisable = [ "fortify" ];
16
17 postPatch =
18 # Use man from $PATH; escape sequences are still problematic.
19 ''
20 substituteInPlace runtime/ftplugin/man.vim \
21 --replace "/usr/bin/man " "man "
22 '';
23
24 meta = with lib; {
25 description = "The most popular clone of the VI editor";
26 homepage = "http://www.vim.org";
27 license = licenses.vim;
28 maintainers = with maintainers; [ das_j equirosa ];
29 platforms = platforms.unix;
30 mainProgram = "vim";
31 };
32}