From a16611948650e45bbd9e7a7fcae357e4445e51a8 Mon Sep 17 00:00:00 2001 From: Benjamin Staffin Date: Thu, 27 Aug 2015 20:35:46 -0700 Subject: [PATCH] vimproc: Fix when run on non-NixOS linux distros Prior to this change, if there exists a /lib*/ld-linux*.so.2 on a system, vimproc will try to load vimproc_linux64.so or vimproc_linux32.so instead of vimproc_unix.so, which is what nix actually builds. --- pkgs/misc/vim-plugins/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/misc/vim-plugins/default.nix b/pkgs/misc/vim-plugins/default.nix index 23f8b0e16e3d..668bbf7d5718 100644 --- a/pkgs/misc/vim-plugins/default.nix +++ b/pkgs/misc/vim-plugins/default.nix @@ -647,7 +647,10 @@ rec { buildInputs = [ which ]; buildPhase = '' - sed -i 's/vimproc_mac\.so/vimproc_unix\.so/' autoload/vimproc.vim + substituteInPlace autoload/vimproc.vim \ + --replace vimproc_mac.so vimproc_unix.so \ + --replace vimproc_linux64.so vimproc_unix.so \ + --replace vimproc_linux32.so vimproc_unix.so make -f make_unix.mak ''; };