nixpkgs/pkgs/applications/editors/vim/common.nix
Robin Gloster 208ff30d77
vim: 9.0.0001 -> 9.0.0057
fixes
CVE-2022-2257
CVE-2022-2264
CVE-2022-2284
CVE-2022-2285
CVE-2022-2286
CVE-2022-2287
CVE-2022-2288
CVE-2022-2289
CVE-2022-2304
CVE-2022-2344
CVE-2022-2345
2022-07-25 12:58:22 +02:00

31 lines
731 B
Nix

{ lib, fetchFromGitHub }:
rec {
version = "9.0.0057";
src = fetchFromGitHub {
owner = "vim";
repo = "vim";
rev = "v${version}";
sha256 = "sha256-KEEuWRxattBrOAC0dWnWGRVqyOIEMe34ivMvSeuxKyA";
};
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 equirosa ];
platforms = platforms.unix;
};
}