From 0cad2e7af170b9f9109fa515224e4aaab57d09c1 Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Sat, 5 Mar 2016 21:39:38 +0100 Subject: [PATCH] vim: Disable hardening flag fortify Fortify hardening detects a probable buffer overflow in vim at runtime. This has to be fixed upstream. Debian also disables fortify: https://anonscm.debian.org/cgit/pkg-vim/vim.git/tree/debian/rules#n6 --- pkgs/applications/editors/vim/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/applications/editors/vim/default.nix b/pkgs/applications/editors/vim/default.nix index 1249b0b9564..01ba9abe9d9 100644 --- a/pkgs/applications/editors/vim/default.nix +++ b/pkgs/applications/editors/vim/default.nix @@ -30,6 +30,8 @@ stdenv.mkDerivation rec { "--enable-nls" ]; + hardeningDisable = [ "fortify" ]; + postInstall = '' ln -s $out/bin/vim $out/bin/vi mkdir -p $out/share/vim