diff --git a/pkgs/applications/editors/emacs-24/macport-24.4.nix b/pkgs/applications/editors/emacs-24/macport-24.4.nix index 0af0e479a07..694078ffa1f 100644 --- a/pkgs/applications/editors/emacs-24/macport-24.4.nix +++ b/pkgs/applications/editors/emacs-24/macport-24.4.nix @@ -28,6 +28,9 @@ stdenv.mkDerivation rec { ''; preConfigure = '' + substituteInPlace Makefile.in --replace "/bin/pwd" "pwd" + substituteInPlace lib-src/Makefile.in --replace "/bin/pwd" "pwd" + patch -p0 < patch-mac # The search for 'tputs' will fail because it's in ncursesw within the