mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
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.
This commit is contained in:
parent
a2e7a452be
commit
4007e03a20
@ -50,6 +50,9 @@ stdenv.mkDerivation rec {
|
||||
# State the gcc dependency, and make the cgi use our wrapper
|
||||
sed -i -e 's@$0@"'$out/bin/ikiwiki'"@' \
|
||||
-e "s@'cc'@'${stdenv.cc}/bin/gcc'@" IkiWiki/Wrapper.pm
|
||||
# Without patched plugin shebangs, some tests like t/rst.t fail
|
||||
# (with docutilsSupport enabled)
|
||||
patchShebangs plugins/*
|
||||
'';
|
||||
|
||||
configurePhase = "perl Makefile.PL PREFIX=$out";
|
||||
|
Loading…
Reference in New Issue
Block a user