ikiwiki: Patch shebangs in plugins

Since the checkPhase runs before fixupPhase, we must manually patch
shebangs for plugins that are executed during tests.

Specifically, when docutilsSupport is enabled. The tests for the rst
plugin failed.

+3
+3
pkgs/applications/misc/ikiwiki/default.nix
··· 50 50 # State the gcc dependency, and make the cgi use our wrapper 51 51 sed -i -e 's@$0@"'$out/bin/ikiwiki'"@' \ 52 52 -e "s@'cc'@'${stdenv.cc}/bin/gcc'@" IkiWiki/Wrapper.pm 53 + # Without patched plugin shebangs, some tests like t/rst.t fail 54 + # (with docutilsSupport enabled) 55 + patchShebangs plugins/* 53 56 ''; 54 57 55 58 configurePhase = "perl Makefile.PL PREFIX=$out";