summary refs log tree commit diff
path: root/pkgs/applications/misc/ikiwiki
diff options
context:
space:
mode:
authorMichal Sojka <michal.sojka@cvut.cz>2021-10-28 11:23:35 +0200
committerMichal Sojka <michal.sojka@cvut.cz>2021-10-28 11:38:47 +0200
commit4007e03a20086b4b02f65336055c85fe55ffb97c (patch)
tree82b97385bffeec2eaa4d607eece7cea9853701f6 /pkgs/applications/misc/ikiwiki
parenta2e7a452be8b5bbd63985de3f1f54d74e28e348b (diff)
downloadnixpkgs-4007e03a20086b4b02f65336055c85fe55ffb97c.tar
nixpkgs-4007e03a20086b4b02f65336055c85fe55ffb97c.tar.gz
nixpkgs-4007e03a20086b4b02f65336055c85fe55ffb97c.tar.bz2
nixpkgs-4007e03a20086b4b02f65336055c85fe55ffb97c.tar.lz
nixpkgs-4007e03a20086b4b02f65336055c85fe55ffb97c.tar.xz
nixpkgs-4007e03a20086b4b02f65336055c85fe55ffb97c.tar.zst
nixpkgs-4007e03a20086b4b02f65336055c85fe55ffb97c.zip
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.
Diffstat (limited to 'pkgs/applications/misc/ikiwiki')
-rw-r--r--pkgs/applications/misc/ikiwiki/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/applications/misc/ikiwiki/default.nix b/pkgs/applications/misc/ikiwiki/default.nix
index d54ce442f34..74fd8ed59a7 100644
--- a/pkgs/applications/misc/ikiwiki/default.nix
+++ b/pkgs/applications/misc/ikiwiki/default.nix
@@ -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";