diff options
author | Lily Ballard <lily@sb.org> | 2019-09-11 16:40:49 -0700 |
---|---|---|
committer | Lily Ballard <lily@sb.org> | 2019-09-11 16:44:13 -0700 |
commit | 7f481e807f0c6dce9a1869ff6c54101340817d6a (patch) | |
tree | 6d1a2c3879eef2316b5cfd3ed572934e25d38d4b /pkgs/applications/editors/vim/macvim.nix | |
parent | bcaa3e702f099d5dfc0b04f8b4478119b4549c29 (diff) | |
download | nixlib-7f481e807f0c6dce9a1869ff6c54101340817d6a.tar nixlib-7f481e807f0c6dce9a1869ff6c54101340817d6a.tar.gz nixlib-7f481e807f0c6dce9a1869ff6c54101340817d6a.tar.bz2 nixlib-7f481e807f0c6dce9a1869ff6c54101340817d6a.tar.lz nixlib-7f481e807f0c6dce9a1869ff6c54101340817d6a.tar.xz nixlib-7f481e807f0c6dce9a1869ff6c54101340817d6a.tar.zst nixlib-7f481e807f0c6dce9a1869ff6c54101340817d6a.zip |
macvim: work around ibtool issue
It seems that /usr/bin/ibtool marks stdin/stdout/stderr as nonblocking, which can cause the subsequent build phase to fail when it tries to write to stdout. I don't know why this problem just started happening for me, but preventing ibtool from inheriting fds fixes the problem.
Diffstat (limited to 'pkgs/applications/editors/vim/macvim.nix')
-rw-r--r-- | pkgs/applications/editors/vim/macvim.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/applications/editors/vim/macvim.nix b/pkgs/applications/editors/vim/macvim.nix index 6081bbc8b0ca..3df964361cc8 100644 --- a/pkgs/applications/editors/vim/macvim.nix +++ b/pkgs/applications/editors/vim/macvim.nix @@ -48,7 +48,11 @@ stdenv.mkDerivation { # The sparkle patch modified the nibs, so we have to recompile them postPatch = '' for nib in MainMenu Preferences; do - /usr/bin/ibtool --compile src/MacVim/English.lproj/$nib.nib/keyedobjects.nib src/MacVim/English.lproj/$nib.nib + # redirect stdin/stdout/stderr to /dev/null because ibtool marks them nonblocking + # and not redirecting screws with subsequent commands. + # redirecting stderr is unfortunate but I don't know of a reasonable way to remove O_NONBLOCK + # from the fds. + /usr/bin/ibtool --compile src/MacVim/English.lproj/$nib.nib/keyedobjects.nib src/MacVim/English.lproj/$nib.nib >/dev/null 2>/dev/null </dev/null done ''; |