perl is a runtime dependency so it needs to be in buildInputs, otherwise patchShebangs hook will not see it.