diff --git a/pkgs/applications/editors/vim/macvim.nix b/pkgs/applications/editors/vim/macvim.nix index 6f43a2f9a897..a688170b8ad4 100644 --- a/pkgs/applications/editors/vim/macvim.nix +++ b/pkgs/applications/editors/vim/macvim.nix @@ -1,5 +1,6 @@ { stdenv, fetchFromGitHub, ncurses, gettext , pkgconfig, cscope, python, ruby, tcl, perl, luajit +, darwin }: stdenv.mkDerivation rec { @@ -72,6 +73,10 @@ stdenv.mkDerivation rec { ) ''; + postConfigure = '' + substituteInPlace src/auto/config.mk --replace "PERL_CFLAGS =" "PERL_CFLAGS = -I${darwin.libutil}/include" + ''; + postInstall = '' mkdir -p $out/Applications cp -r src/MacVim/build/Release/MacVim.app $out/Applications diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 98aee99dda64..c0b784cc329c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14263,7 +14263,7 @@ in inherit (darwin.apple_sdk.frameworks) Carbon Cocoa; }; - macvim = callPackage ../applications/editors/vim/macvim.nix { stdenv = clangStdenv; }; + macvim = callPackage ../applications/editors/vim/macvim.nix { stdenv = clangStdenv; ruby = ruby_2_2; }; vimHugeX = vim_configurable;