self: super: {
  irssi = super.irssi.overrideAttrs (oldAttrs: {
    patches = [
      # https://raw.githubusercontent.com/gandalf3/irssi-passwd/master/irssi-connection-set-key.patch
      # Irssi dynamic password patch
      irssi/irssi-connection-set-key.patch
    ];
    postInstall = ''
      wrapProgram "$out/bin/irssi" --suffix PERL5LIB : $PERL5LIB
    '';
    buildInputs = oldAttrs.buildInputs ++ [
      self.makeWrapper
      self.perlPackages.HTMLTree
      self.perlPackages.LWPProtocolHttps
      self.perlPackages.LWPUserAgent
      self.perlPackages.URI
    ];
  });
}