diff options
Diffstat (limited to 'pkgs/applications/networking/irc')
52 files changed, 0 insertions, 2252 deletions
diff --git a/pkgs/applications/networking/irc/bip/default.nix b/pkgs/applications/networking/irc/bip/default.nix deleted file mode 100644 index 75f31d1ba9b5..000000000000 --- a/pkgs/applications/networking/irc/bip/default.nix +++ /dev/null @@ -1,42 +0,0 @@ -{ lib -, stdenv -, fetchurl -, autoreconfHook -, pkg-config -, bison -, flex -, openssl -}: - -stdenv.mkDerivation { - pname = "bip"; - version = "0.9.3"; - - src = fetchurl { - # Note that the number behind download is not predictable - url = "https://projects.duckcorp.org/attachments/download/146/bip-0.9.3.tar.gz"; - hash = "sha256-K+6AC8mg0aLQsCgiDoFBM5w2XrR+V2tfWnI8ByeRmOI="; - }; - - outputs = [ "out" "man" "doc" ]; - - postPatch = '' - # Drop blanket -Werror to avoid build failure on fresh toolchains - # and libraries. Without the cnage build fails on gcc-13 and on - # openssl-3. - substituteInPlace src/Makefile.am --replace-fail ' -Werror ' ' ' - ''; - - nativeBuildInputs = [ autoreconfHook pkg-config ]; - buildInputs = [ bison flex openssl ]; - - enableParallelBuilding = true; - - meta = { - description = "IRC proxy (bouncer)"; - homepage = "http://bip.milkypond.org/"; - license = lib.licenses.gpl2; - downloadPage = "https://projects.duckcorp.org/projects/bip/files"; - platforms = lib.platforms.linux; - }; -} diff --git a/pkgs/applications/networking/irc/catgirl/default.nix b/pkgs/applications/networking/irc/catgirl/default.nix deleted file mode 100644 index 318a3ec5fdb3..000000000000 --- a/pkgs/applications/networking/irc/catgirl/default.nix +++ /dev/null @@ -1,36 +0,0 @@ -{ ctags, fetchurl, lib, libressl, ncurses, pkg-config, stdenv }: - -stdenv.mkDerivation rec { - pname = "catgirl"; - version = "2.2a"; - - src = fetchurl { - url = "https://git.causal.agency/catgirl/snapshot/${pname}-${version}.tar.gz"; - hash = "sha256-xtdgqu4TTgUlht73qRA1Q/coH95lMfvLQQhkcHlCl8I="; - }; - - # catgirl's configure script uses pkg-config --variable exec_prefix openssl - # to discover the install location of the openssl(1) utility. exec_prefix - # is the "out" output of libressl in our case (where the libraries are - # installed), so we need to fix this up. - postConfigure = '' - substituteInPlace config.mk --replace \ - "$($PKG_CONFIG --variable exec_prefix openssl)" \ - "${lib.getBin libressl}" - ''; - - nativeBuildInputs = [ ctags pkg-config ]; - buildInputs = [ libressl ncurses ]; - strictDeps = true; - - enableParallelBuilding = true; - - meta = with lib; { - homepage = "https://git.causal.agency/catgirl/about/"; - license = licenses.gpl3Plus; - description = "TLS-only terminal IRC client"; - platforms = platforms.unix; - mainProgram = "catgirl"; - maintainers = with maintainers; [ xfnw ]; - }; -} diff --git a/pkgs/applications/networking/irc/communi/default.nix b/pkgs/applications/networking/irc/communi/default.nix deleted file mode 100644 index 84940c288bed..000000000000 --- a/pkgs/applications/networking/irc/communi/default.nix +++ /dev/null @@ -1,79 +0,0 @@ -{ stdenv -, lib -, fetchFromGitHub -, libcommuni -, qmake -, qtbase -, wrapQtAppsHook -}: - -stdenv.mkDerivation rec { - pname = "communi"; - version = "3.6.0"; - - src = fetchFromGitHub { - owner = "communi"; - repo = "communi-desktop"; - # Without https://github.com/communi/communi-desktop/pull/146 fetching fails with - # fatal: unable to connect to github.com: - # github.com[0: 140.82.112.3]: errno=Connection timed out - rev = "5d813dc6e64a623cd5d78f024c8a0720a5155a28"; - hash = "sha256-ci91Bf0EkhlPDO+NcpnMmT/vE41i5RD2mXbRAnMB++M="; - fetchSubmodules = true; - }; - - nativeBuildInputs = [ - qmake - wrapQtAppsHook - ]; - - buildInputs = [ - libcommuni - qtbase - ]; - - # libCommuni.dylib is installed in $out/Applications/Communi.app/Contents/Frameworks/ on Darwin - # Wrapper hook thinks it's a binary because it's in $out/Applications, wraps it with a shell script - # So we manually call the wrapper script on just the binary - dontWrapQtApps = stdenv.isDarwin; - - preConfigure = '' - export QMAKEFEATURES=${libcommuni}/features - ''; - - qmakeFlags = [ - "COMMUNI_INSTALL_PREFIX=${placeholder "out"}" - "COMMUNI_INSTALL_PLUGINS=${placeholder "out"}/lib/communi/plugins" - "COMMUNI_INSTALL_ICONS=${placeholder "out"}/share/icons/hicolor" - "COMMUNI_INSTALL_DESKTOP=${placeholder "out"}/share/applications" - "COMMUNI_INSTALL_THEMES=${placeholder "out"}/share/communi/themes" - "COMMUNI_INSTALL_BINS=${placeholder "out"}/${if stdenv.isDarwin then "Applications" else "bin"}" - ]; - - postInstall = - if stdenv.isDarwin then '' - # Nix qmake does not add the bundle rpath by default. - install_name_tool \ - -add_rpath @executable_path/../Frameworks \ - $out/Applications/Communi.app/Contents/MacOS/Communi - - # Do not remove until wrapQtAppsHook doesn't wrap dylibs in app bundles anymore - wrapQtApp $out/Applications/Communi.app/Contents/MacOS/Communi - '' else '' - substituteInPlace "$out/share/applications/communi.desktop" \ - --replace "/usr/bin" "$out/bin" - ''; - - preFixup = '' - rm -rf lib - ''; - - meta = with lib; { - description = "Simple and elegant cross-platform IRC client"; - mainProgram = "communi"; - homepage = "https://github.com/communi/communi-desktop"; - license = licenses.bsd3; - maintainers = with maintainers; [ hrdinka ]; - platforms = platforms.all; - }; -} diff --git a/pkgs/applications/networking/irc/convos/default.nix b/pkgs/applications/networking/irc/convos/default.nix deleted file mode 100644 index 2fc2e0585910..000000000000 --- a/pkgs/applications/networking/irc/convos/default.nix +++ /dev/null @@ -1,97 +0,0 @@ -{ lib, stdenv, fetchFromGitHub, perl, perlPackages, makeWrapper, shortenPerlShebang, openssl -, nixosTests -}: - -perlPackages.buildPerlPackage rec { - pname = "convos"; - version = "8.05"; - - src = fetchFromGitHub { - owner = "convos-chat"; - repo = pname; - rev = "v${version}"; - sha256 = "sha256-dBvXo8y4OMKcb0imgnnzoklnPN3YePHDvy5rIBOkTfs="; - }; - - nativeBuildInputs = [ makeWrapper ] - ++ lib.optionals stdenv.isDarwin [ shortenPerlShebang ]; - - buildInputs = with perlPackages; [ - CryptPassphrase CryptPassphraseArgon2 CryptPassphraseBcrypt - FileHomeDir FileReadBackwards HTTPAcceptLanguage SyntaxKeywordTry FutureAsyncAwait - IOSocketSSL IRCUtils JSONValidator LinkEmbedder ModuleInstall - Mojolicious MojoliciousPluginOpenAPI MojoliciousPluginSyslog ParseIRC - TextMarkdownHoedown TimePiece UnicodeUTF8 CpanelJSONXS EV YAMLLibYAML - ]; - - propagatedBuildInputs = [ openssl ]; - - nativeCheckInputs = with perlPackages; [ TestDeep ]; - - postPatch = '' - patchShebangs script/convos - ''; - - preCheck = '' - # Remove unstable test (PR #176640) - # - rm t/plugin-auth-header.t - - # Remove online test - # - rm t/web-pwa.t - - # A test fails since gethostbyaddr(127.0.0.1) fails to resolve to localhost in - # the sandbox, we replace the this out from a substitution expression - # - substituteInPlace t/web-register-open-to-public.t \ - --replace '!127.0.0.1!' '!localhost!' - - # Another online test fails, so remove this. - rm t/irc-reconnect.t - - # A webirc test fails to resolve "localhost" likely due to sandboxing, we - # remove this test. - # - rm t/irc-webirc.t - - # A web-user test fails on Darwin, we remove it. - # - rm t/web-user.t - - # Another web test fails, so we also remove this. - rm t/web-login.t - - # Module::Install is a runtime dependency not covered by the tests, so we add - # a test for it. - # - echo "use Test::More tests => 1;require_ok('Module::Install')" \ - > t/00_nixpkgs_module_install.t - ''; - - # Convos expects to find assets in both auto/share/dist/Convos, and $MOJO_HOME - # which is set to $out - # - postInstall = '' - AUTO_SHARE_PATH=$out/${perl.libPrefix}/auto/share/dist/Convos - mkdir -p $AUTO_SHARE_PATH - cp -vR public assets $AUTO_SHARE_PATH/ - ln -s $AUTO_SHARE_PATH/public/assets $out/assets - cp -vR templates $out/templates - cp Makefile.PL $out/Makefile.PL - '' + lib.optionalString stdenv.isDarwin '' - shortenPerlShebang $out/bin/convos - '' + '' - wrapProgram $out/bin/convos --set MOJO_HOME $out - ''; - - passthru.tests = nixosTests.convos; - - meta = { - homepage = "https://convos.chat"; - description = "Convos is the simplest way to use IRC in your browser"; - mainProgram = "convos"; - license = lib.licenses.artistic2; - maintainers = with lib.maintainers; [ sgo ]; - }; -} diff --git a/pkgs/applications/networking/irc/epic5/default.nix b/pkgs/applications/networking/irc/epic5/default.nix deleted file mode 100644 index 404eca810ef2..000000000000 --- a/pkgs/applications/networking/irc/epic5/default.nix +++ /dev/null @@ -1,41 +0,0 @@ -{ lib, stdenv, fetchurl, openssl, ncurses, libiconv, tcl, coreutils, fetchpatch, libxcrypt }: - -stdenv.mkDerivation rec { - pname = "epic5"; - version = "2.0.1"; - - src = fetchurl { - url = "http://ftp.epicsol.org/pub/epic/EPIC5-PRODUCTION/${pname}-${version}.tar.xz"; - sha256 = "1ap73d5f4vccxjaaq249zh981z85106vvqmxfm4plvy76b40y9jm"; - }; - - # Darwin needs libiconv, tcl; while Linux build don't - buildInputs = [ openssl ncurses libxcrypt ] - ++ lib.optionals stdenv.isDarwin [ libiconv tcl ]; - - patches = [ - (fetchpatch { - url = "https://sources.debian.net/data/main/e/epic5/2.0.1-1/debian/patches/openssl-1.1.patch"; - sha256 = "03bpsyv1sr5icajs2qkdvv8nnn6rz6yvvj7pgiq8gz9sbp6siyfv"; - }) - ]; - - configureFlags = [ "--disable-debug" "--with-ipv6" ]; - - postConfigure = '' - substituteInPlace bsdinstall \ - --replace /bin/cp ${coreutils}/bin/cp \ - --replace /bin/rm ${coreutils}/bin/rm \ - --replace /bin/chmod ${coreutils}/bin/chmod \ - ''; - - meta = with lib; { - homepage = "http://epicsol.org"; - description = "IRC client that offers a great ircII interface"; - license = licenses.bsd3; - maintainers = []; - }; -} - - - diff --git a/pkgs/applications/networking/irc/glowing-bear/default.nix b/pkgs/applications/networking/irc/glowing-bear/default.nix deleted file mode 100644 index d5c0cad075b3..000000000000 --- a/pkgs/applications/networking/irc/glowing-bear/default.nix +++ /dev/null @@ -1,27 +0,0 @@ -{ fetchFromGitHub, lib, stdenv }: - -stdenv.mkDerivation rec { - pname = "glowing-bear"; - version = "0.9.0"; - - src = fetchFromGitHub { - rev = version; - owner = "glowing-bear"; - repo = "glowing-bear"; - sha256 = "0lf0j72m6rwlgqssdxf0m9si99lah08lww7q7i08p5i5lpv6zh2s"; - }; - - installPhase = '' - mkdir $out - cp index.html serviceworker.js webapp.manifest.json $out - cp -R 3rdparty assets css directives js $out - ''; - - meta = with lib; { - description = "Web client for Weechat"; - homepage = "https://github.com/glowing-bear/glowing-bear"; - license = licenses.gpl3Plus; - maintainers = with maintainers; [ ]; - platforms = platforms.unix; - }; -} diff --git a/pkgs/applications/networking/irc/hexchat/default.nix b/pkgs/applications/networking/irc/hexchat/default.nix deleted file mode 100644 index 4aafcc272638..000000000000 --- a/pkgs/applications/networking/irc/hexchat/default.nix +++ /dev/null @@ -1,55 +0,0 @@ -{ lib, stdenv, fetchFromGitHub, pkg-config, gtk2, lua, perl, python3Packages -, pciutils, dbus-glib, libcanberra-gtk2, libproxy -, enchant2, libnotify, openssl, isocodes -, desktop-file-utils -, meson, ninja, makeWrapper -}: - -stdenv.mkDerivation rec { - pname = "hexchat"; - version = "2.16.2"; - - src = fetchFromGitHub { - owner = "hexchat"; - repo = "hexchat"; - rev = "v${version}"; - sha256 = "sha256-rgaXqXbBWlfSyz+CT0jRLyfGOR1cYYnRhEAu7AsaWus="; - }; - - nativeBuildInputs = [ meson ninja pkg-config makeWrapper ]; - - buildInputs = [ - gtk2 lua perl python3Packages.python python3Packages.cffi pciutils dbus-glib libcanberra-gtk2 libproxy - libnotify openssl desktop-file-utils - isocodes - ]; - - #hexchat and hexchat-text loads enchant spell checking library at run time and so it needs to have route to the path - postPatch = '' - sed -i "s,libenchant-2.so.2,${enchant2}/lib/libenchant-2.so.2,g" src/fe-gtk/sexy-spell-entry.c - sed -i "/flag.startswith('-I')/i if flag.contains('no-such-path')\ncontinue\nendif" plugins/perl/meson.build - chmod +x meson_post_install.py - for f in meson_post_install.py \ - plugins/perl/generate_header.py \ - plugins/python/generate_plugin.py \ - po/validate-textevent-translations \ - src/common/make-te.py - do - patchShebangs $f - done - ''; - - mesonFlags = [ "-Dwith-lua=lua" "-Dtext-frontend=true" ]; - - postInstall = '' - wrapProgram $out/bin/hexchat --prefix PYTHONPATH : "$PYTHONPATH" - ''; - - meta = with lib; { - description = "Popular and easy to use graphical IRC (chat) client"; - homepage = "https://hexchat.github.io/"; - license = licenses.gpl2; - platforms = platforms.linux; - maintainers = with maintainers; [ romildo ]; - }; -} diff --git a/pkgs/applications/networking/irc/ii/default.nix b/pkgs/applications/networking/irc/ii/default.nix deleted file mode 100644 index 8fca00992252..000000000000 --- a/pkgs/applications/networking/irc/ii/default.nix +++ /dev/null @@ -1,23 +0,0 @@ -{lib, stdenv, fetchurl}: - -stdenv.mkDerivation rec { - pname = "ii"; - version = "2.0"; - - src = fetchurl { - url = "https://dl.suckless.org/tools/${pname}-${version}.tar.gz"; - sha256 = "sha256-T2evzSCMB5ObiKrb8hSXpwKtCgf5tabOhh+fOf/lQls="; - }; - - makeFlags = [ "CC:=$(CC)" ]; - - installFlags = [ "PREFIX=$(out)" ]; - - meta = { - homepage = "https://tools.suckless.org/ii/"; - license = lib.licenses.mit; - description = "Irc it, simple FIFO based irc client"; - mainProgram = "ii"; - platforms = lib.platforms.unix; - }; -} diff --git a/pkgs/applications/networking/irc/irccloud/default.nix b/pkgs/applications/networking/irc/irccloud/default.nix deleted file mode 100644 index 4e41e1f865ec..000000000000 --- a/pkgs/applications/networking/irc/irccloud/default.nix +++ /dev/null @@ -1,37 +0,0 @@ -{ appimageTools, fetchurl, lib }: - -let - pname = "irccloud"; - version = "0.16.0"; - - src = fetchurl { - url = "https://github.com/irccloud/irccloud-desktop/releases/download/v${version}/IRCCloud-${version}-linux-x86_64.AppImage"; - sha256 = "sha256-/hMPvYdnVB1XjKgU2v47HnVvW4+uC3rhRjbucqin4iI="; - }; - - appimageContents = appimageTools.extractType2 { - inherit pname version src; - }; - -in appimageTools.wrapType2 { - inherit pname version src; - - extraPkgs = pkgs: [ pkgs.at-spi2-core ]; - - extraInstallCommands = '' - install -m 444 -D ${appimageContents}/irccloud.desktop $out/share/applications/irccloud.desktop - install -m 444 -D ${appimageContents}/usr/share/icons/hicolor/512x512/apps/irccloud.png \ - $out/share/icons/hicolor/512x512/apps/irccloud.png - substituteInPlace $out/share/applications/irccloud.desktop \ - --replace 'Exec=AppRun' 'Exec=${pname}' - ''; - - meta = with lib; { - description = "Desktop client for IRCCloud"; - mainProgram = "irccloud"; - homepage = "https://www.irccloud.com"; - license = licenses.asl20; - platforms = [ "x86_64-linux" ]; - maintainers = with maintainers; [ lightbulbjim ]; - }; -} diff --git a/pkgs/applications/networking/irc/ircdog/default.nix b/pkgs/applications/networking/irc/ircdog/default.nix deleted file mode 100644 index f08d6857799c..000000000000 --- a/pkgs/applications/networking/irc/ircdog/default.nix +++ /dev/null @@ -1,29 +0,0 @@ -{ lib -, buildGoModule -, fetchFromGitHub -}: - -buildGoModule rec { - pname = "ircdog"; - version = "0.5.3"; - - src = fetchFromGitHub { - owner = "goshuirc"; - repo = "ircdog"; - rev = "refs/tags/v${version}"; - hash = "sha256-TdMgt1ZgoEaweH8Cbb+wG/H1Bx9DpgHgzGO5dZfxvK8="; - }; - - vendorHash = null; - - meta = with lib; { - description = "ircdog is a simple wrapper over the raw IRC protocol that can respond to pings, and interprets formatting codes"; - mainProgram = "ircdog"; - homepage = "https://github.com/ergochat/ircdog"; - changelog = "https://github.com/ergochat/ircdog/releases/tag/v${version}"; - license = licenses.isc; - maintainers = with maintainers; [ hexa ]; - }; -} - - diff --git a/pkgs/applications/networking/irc/irssi/default.nix b/pkgs/applications/networking/irc/irssi/default.nix deleted file mode 100644 index 940242b6668d..000000000000 --- a/pkgs/applications/networking/irc/irssi/default.nix +++ /dev/null @@ -1,58 +0,0 @@ -{ lib -, stdenv -, fetchFromGitHub -, glib -, libgcrypt -, libintl -, libotr -, libtool -, meson -, ncurses -, ninja -, openssl -, perl -, pkg-config -}: - -stdenv.mkDerivation rec { - pname = "irssi"; - version = "1.4.5"; - - src = fetchFromGitHub { - owner = "irssi"; - repo = "irssi"; - rev = version; - hash = "sha256-D+KMjkweStMqVhoQoiJPFt/G0vdf7x2FjYCvqGS8UqY="; - }; - - nativeBuildInputs = [ - meson - ninja - pkg-config - ]; - - buildInputs = [ - glib - libgcrypt - libintl - libotr - ncurses - openssl - perl - ]; - - configureFlags = [ - "-Dwith-proxy=yes" - "-Dwith-bot=yes" - "-Dwith-perl=yes" - ]; - - meta = with lib; { - description = "Terminal based IRC client"; - mainProgram = "irssi"; - homepage = "https://irssi.org"; - license = licenses.gpl2Plus; - maintainers = with maintainers; [ fab lovek323 ]; - platforms = platforms.unix; - }; -} diff --git a/pkgs/applications/networking/irc/irssi/fish/default.nix b/pkgs/applications/networking/irc/irssi/fish/default.nix deleted file mode 100644 index b26b2cb1daf4..000000000000 --- a/pkgs/applications/networking/irc/irssi/fish/default.nix +++ /dev/null @@ -1,28 +0,0 @@ -{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, glib, openssl, irssi }: - -stdenv.mkDerivation rec { - pname = "fish-irssi"; - version = "unstable-2021-04-16"; - - src = fetchFromGitHub { - owner = "falsovsky"; - repo = "FiSH-irssi"; - rev = "fcc484f09ce6941ba2e499605270593ddd13b81a"; - hash = "sha256-KIPnz17a0CFfoPO2dZz90j+wG/dR4pv5d0iZMRf7Vkc="; - }; - - patches = [ ./irssi-include-dir.patch ]; - - nativeBuildInputs = [ cmake pkg-config ]; - - buildInputs = [ glib openssl ]; - - cmakeFlags = [ "-DIRSSI_INCLUDE_PATH:PATH=${irssi}/include" ]; - - meta = with lib; { - homepage = "https://github.com/falsovsky/FiSH-irssi"; - license = licenses.mit; - maintainers = with maintainers; [ viric ]; - platforms = platforms.unix; - }; -} diff --git a/pkgs/applications/networking/irc/irssi/fish/irssi-include-dir.patch b/pkgs/applications/networking/irc/irssi/fish/irssi-include-dir.patch deleted file mode 100644 index 0a51ec327bdc..000000000000 --- a/pkgs/applications/networking/irc/irssi/fish/irssi-include-dir.patch +++ /dev/null @@ -1,33 +0,0 @@ -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 601b92b..b440f83 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -36,27 +36,10 @@ if(OPENSSL_FOUND) - MESSAGE(STATUS "Using OpenSSL ${OPENSSL_VERSION}") - ENDIF() - --# Sets a variable that the user can set with --# cmake -DIRSSI_INCLUDE_DIR:PATH=/path/to/irssi/includes . --SET(IRSSI_INCLUDE_DIR "" CACHE PATH "Path to irssi include files") -- --# Tries to find the irssi include files in the most common places, --# and in the user defined directory --FIND_PATH(IRSSI_INCLUDE_PATH -- NAMES irssi-config.h src/common.h -- PATHS /usr/include/irssi /usr/local/include/irssi ${IRSSI_INCLUDE_DIR} --) -- --# Bail out if the required irssi files werent found --IF(NOT IRSSI_INCLUDE_PATH) -- MESSAGE(SEND_ERROR "Could not detect the irssi include files. Please run:\n# cmake -DIRSSI_INCLUDE_DIR:PATH=/path/to/irssi/includes .") -- RETURN() --ENDIF() -- - MESSAGE(STATUS "irssi includes were found on ${IRSSI_INCLUDE_PATH}") - - # Add the weirdo irssi includes directories --INCLUDE_DIRECTORIES(${IRSSI_INCLUDE_PATH} ${IRSSI_INCLUDE_PATH}/src ${IRSSI_INCLUDE_PATH}/src/fe-common/core ${IRSSI_INCLUDE_PATH}/src/core) -+INCLUDE_DIRECTORIES(${IRSSI_INCLUDE_PATH} ${IRSSI_INCLUDE_PATH}/irssi ${IRSSI_INCLUDE_PATH}/irssi/src ${IRSSI_INCLUDE_PATH}/irssi/src/fe-common/core ${IRSSI_INCLUDE_PATH}/irssi/src/core) - - MESSAGE(STATUS "The module will be installed by default to ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/irssi/modules") - MESSAGE(STATUS "You can change it with 'cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .'") diff --git a/pkgs/applications/networking/irc/kirc/default.nix b/pkgs/applications/networking/irc/kirc/default.nix deleted file mode 100644 index ea2e45bff88e..000000000000 --- a/pkgs/applications/networking/irc/kirc/default.nix +++ /dev/null @@ -1,45 +0,0 @@ -{ lib -, stdenv -, fetchFromGitHub -}: - -stdenv.mkDerivation rec { - pname = "kirc"; - version = "0.3.2"; - - src = fetchFromGitHub { - owner = "mcpcpc"; - repo = pname; - rev = version; - hash = "sha256-SXPtSFjGPLgORG9OCSCEStzNzdGZFzCx72YOrW288MU="; - }; - - dontConfigure = true; - - installFlags = [ "PREFIX=$(out)" ]; - - meta = with lib; { - homepage = "https://mcpcpc.github.io/kirc/"; - description = "Tiny IRC client written in C99"; - mainProgram = "kirc"; - longDescription = '' - kirc is a tiny open-source Internet Relay Chat (IRC) client designed with - usability and cross-platform compatibility in mind. - - It features: - - No dependencies other than a C99 compiler. - - Simple Authentication and Security Layer (SASL) procotol support. - - Client-to-client (CTCP) protocol support. - - Transport Layer Security (TLS) protocol support (via external - utilities). - - Simple chat history logging. - - Asynchronous message handling. - - Multi-channel joining at server connection. - - Full support for all RFC 2812 commands. - - Easy customized color scheme definition. - ''; - license = licenses.mit; - maintainers = with maintainers; [ AndersonTorres ]; - platforms = platforms.unix; - }; -} diff --git a/pkgs/applications/networking/irc/kvirc/default.nix b/pkgs/applications/networking/irc/kvirc/default.nix deleted file mode 100644 index eb443666764f..000000000000 --- a/pkgs/applications/networking/irc/kvirc/default.nix +++ /dev/null @@ -1,32 +0,0 @@ -{ lib, mkDerivation, fetchFromGitHub -, qtbase, qtmultimedia, qtsvg, qtx11extras -, pkg-config, cmake, gettext -}: - -mkDerivation rec { - pname = "kvirc"; - version = "2022-06-29"; - - src = fetchFromGitHub { - owner = "kvirc"; - repo = "KVIrc"; - rev = "eb3fdd6b1d824f148fd6e582852dcba77fc9a271"; - sha256 = "sha256-RT5UobpMt/vBLgWur1TkodS3dMyIWQkDPiBYCYx/FI4="; - }; - - buildInputs = [ - qtbase qtmultimedia qtsvg qtx11extras - ]; - - nativeBuildInputs = [ - pkg-config cmake gettext - ]; - - meta = with lib; { - description = "Advanced IRC Client"; - homepage = "https://www.kvirc.net/"; - license = licenses.gpl2; - maintainers = [ maintainers.suhr ]; - platforms = platforms.linux; - }; -} diff --git a/pkgs/applications/networking/irc/quassel/default.nix b/pkgs/applications/networking/irc/quassel/default.nix deleted file mode 100644 index 1324ec21a0ae..000000000000 --- a/pkgs/applications/networking/irc/quassel/default.nix +++ /dev/null @@ -1,94 +0,0 @@ -{ monolithic ? true # build monolithic Quassel -, enableDaemon ? false # build Quassel daemon -, client ? false # build Quassel client -, tag ? "-kf5" # tag added to the package name -, static ? false # link statically - -, lib, stdenv, fetchFromGitHub, cmake, makeWrapper, dconf -, mkDerivation, qtbase, boost, zlib, qtscript -, phonon, libdbusmenu, qca-qt5, openldap - -, withKDE ? true # enable KDE integration -, extra-cmake-modules -, kconfigwidgets -, kcoreaddons -, knotifications -, knotifyconfig -, ktextwidgets -, kwidgetsaddons -, kxmlgui -}: - -let - buildClient = monolithic || client; - buildCore = monolithic || enableDaemon; -in - -assert monolithic -> !client && !enableDaemon; -assert client || enableDaemon -> !monolithic; -assert !buildClient -> !withKDE; # KDE is used by the client only - -let - edf = flag: feature: [("-D" + feature + (if flag then "=ON" else "=OFF"))]; - -in (if !buildClient then stdenv.mkDerivation else mkDerivation) rec { - pname = "quassel${tag}"; - version = "0.14.0"; - - src = fetchFromGitHub { - owner = "quassel"; - repo = "quassel"; - rev = version; - sha256 = "sha256-eulhNcyCmy9ryietOhT2yVJeJH+MMZRbTUo2XuTy9qU="; - }; - - # Prevent ``undefined reference to `qt_version_tag''' in SSL check - env.NIX_CFLAGS_COMPILE = "-DQT_NO_VERSION_TAGGING=1"; - - nativeBuildInputs = [ cmake makeWrapper ]; - buildInputs = [ qtbase boost zlib ] - ++ lib.optionals buildCore [qtscript qca-qt5 openldap] - ++ lib.optionals buildClient [libdbusmenu phonon] - ++ lib.optionals (buildClient && withKDE) [ - extra-cmake-modules kconfigwidgets kcoreaddons - knotifications knotifyconfig ktextwidgets kwidgetsaddons - kxmlgui - ]; - - cmakeFlags = [ - "-DEMBED_DATA=OFF" - "-DUSE_QT5=ON" - ] - ++ edf static "STATIC" - ++ edf monolithic "WANT_MONO" - ++ edf enableDaemon "WANT_CORE" - ++ edf enableDaemon "WITH_LDAP" - ++ edf client "WANT_QTCLIENT" - ++ edf withKDE "WITH_KDE"; - - dontWrapQtApps = true; - - postFixup = - lib.optionalString enableDaemon '' - wrapProgram "$out/bin/quasselcore" --suffix PATH : "${qtbase.bin}/bin" - '' + - lib.optionalString buildClient '' - wrapQtApp "$out/bin/quassel${lib.optionalString client "client"}" \ - --prefix GIO_EXTRA_MODULES : "${dconf}/lib/gio/modules" - ''; - - meta = with lib; { - homepage = "https://quassel-irc.org/"; - description = "Qt/KDE distributed IRC client supporting a remote daemon"; - longDescription = '' - Quassel IRC is a cross-platform, distributed IRC client, - meaning that one (or multiple) client(s) can attach to - and detach from a central core -- much like the popular - combination of screen and a text-based IRC client such - as WeeChat, but graphical (based on Qt4/KDE4 or Qt5/KF5). - ''; - license = licenses.gpl3; - maintainers = with maintainers; [ ttuegel ]; - inherit (qtbase.meta) platforms; - }; -} diff --git a/pkgs/applications/networking/irc/senpai/bump-go-version.patch b/pkgs/applications/networking/irc/senpai/bump-go-version.patch deleted file mode 100644 index 757368942499..000000000000 --- a/pkgs/applications/networking/irc/senpai/bump-go-version.patch +++ /dev/null @@ -1,84 +0,0 @@ -diff --git a/go.mod b/go.mod -index 8841027..fda8eb7 100644 ---- a/go.mod -+++ b/go.mod -@@ -1,6 +1,6 @@ - module git.sr.ht/~delthas/senpai - --go 1.16 -+go 1.18 - - require ( - git.sr.ht/~emersion/go-scfg v0.0.0-20231004133111-9dce55c8d63b -@@ -13,4 +13,14 @@ require ( - mvdan.cc/xurls/v2 v2.5.0 - ) - -+require ( -+ github.com/gdamore/encoding v1.0.0 // indirect -+ github.com/godbus/dbus/v5 v5.1.0 // indirect -+ github.com/lucasb-eyer/go-colorful v1.2.0 // indirect -+ github.com/rivo/uniseg v0.4.3 // indirect -+ golang.org/x/sys v0.14.0 // indirect -+ golang.org/x/term v0.14.0 // indirect -+ golang.org/x/text v0.14.0 // indirect -+) -+ - replace github.com/gdamore/tcell/v2 => github.com/delthas/tcell/v2 v2.4.1-0.20230710100648-1489e78d90fb -diff --git a/go.sum b/go.sum -index 89c5397..f4d3eaa 100644 ---- a/go.sum -+++ b/go.sum -@@ -20,44 +20,34 @@ github.com/mattn/go-runewidth v0.0.15/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh - github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= - github.com/rivo/uniseg v0.4.3 h1:utMvzDsuh3suAEnhH0RdHmoPbU648o6CvXxTx4SBMOw= - github.com/rivo/uniseg v0.4.3/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= --github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= - github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= - golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= - golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= --golang.org/x/crypto v0.15.0/go.mod h1:4ChreQoLWfG3xLDer1WdlH5NdlQ3+mwnQq1YTKY+72g= - golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= --golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= --golang.org/x/mod v0.10.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= - golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= - golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= - golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= --golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= --golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= - golang.org/x/net v0.18.0 h1:mIYleuAkSbHh0tCv7RvjL3F6ZVbLjq4+R7zbOn3Kokg= - golang.org/x/net v0.18.0/go.mod h1:/czyP5RqHAH4odGYxBJ1qz0+CE5WZ+2j1YgoEo8F2jQ= - golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= - golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= --golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= - golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= - golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= - golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= - golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= - golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= - golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= --golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= - golang.org/x/sys v0.14.0 h1:Vz7Qs629MkJkGyHxUlRHizWJRG2j8fbQKjELVSNhy7Q= - golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= - golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= - golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= - golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= --golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= - golang.org/x/term v0.14.0 h1:LGK9IlZ8T9jvdy6cTdfKUCltatMFOehAQo9SRC46UQ8= - golang.org/x/term v0.14.0/go.mod h1:TySc+nGkYR6qt8km8wUhuFRTVSMIX3XPR58y2lC8vww= - golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= - golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= - golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= - golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= --golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= - golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= - golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= - golang.org/x/time v0.4.0 h1:Z81tqI5ddIoXDPvVQ7/7CC9TnLM7ubaFG2qXYd5BbYY= -@@ -65,7 +55,6 @@ golang.org/x/time v0.4.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= - golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= - golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= - golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= --golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= - golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= - mvdan.cc/xurls/v2 v2.5.0 h1:lyBNOm8Wo71UknhUs4QTFUNNMyxy2JEIaKKo0RWOh+8= - mvdan.cc/xurls/v2 v2.5.0/go.mod h1:yQgaGQ1rFtJUzkmKiHYSSfuQxqfYmd//X6PxvholpeE= diff --git a/pkgs/applications/networking/irc/senpai/default.nix b/pkgs/applications/networking/irc/senpai/default.nix deleted file mode 100644 index f27a31e66088..000000000000 --- a/pkgs/applications/networking/irc/senpai/default.nix +++ /dev/null @@ -1,44 +0,0 @@ -{ lib, buildGoModule, fetchFromSourcehut, installShellFiles, scdoc }: - -buildGoModule rec { - pname = "senpai"; - version = "0.3.0"; - - src = fetchFromSourcehut { - owner = "~delthas"; - repo = "senpai"; - rev = "v${version}"; - sha256 = "sha256-A5kBrJJi+RcSpB0bi2heKzNl5LjdeT9h2Pc9kKXDg1A="; - }; - - vendorHash = "sha256-kKYee1QJX7N101MTikHUbX+AqZ2NhM4soE4JAAOdAPI="; - - patches = [ - # fix build failures, submitted upstream https://lists.sr.ht/~delthas/senpai-dev/patches/48581 - ./bump-go-version.patch - ]; - - subPackages = [ - "cmd/senpai" - ]; - - nativeBuildInputs = [ - scdoc - installShellFiles - ]; - - postInstall = '' - scdoc < doc/senpai.1.scd > doc/senpai.1 - scdoc < doc/senpai.5.scd > doc/senpai.5 - installManPage doc/senpai.* - ''; - - meta = with lib; { - description = "Your everyday IRC student"; - mainProgram = "senpai"; - homepage = "https://sr.ht/~taiite/senpai/"; - changelog = "https://git.sr.ht/~delthas/senpai/refs/v${version}"; - license = licenses.isc; - maintainers = with maintainers; [ malte-v ]; - }; -} diff --git a/pkgs/applications/networking/irc/sic/default.nix b/pkgs/applications/networking/irc/sic/default.nix deleted file mode 100644 index 82c5852128e9..000000000000 --- a/pkgs/applications/networking/irc/sic/default.nix +++ /dev/null @@ -1,23 +0,0 @@ -{ lib, stdenv, fetchurl }: - -stdenv.mkDerivation rec { - pname = "sic"; - version = "1.3"; - - src = fetchurl { - url = "https://dl.suckless.org/tools/sic-${version}.tar.gz"; - hash = "sha256-MEePqz68dfLrXQjLtbL+3K9IkRbnWi3XGX4+nHM9ZdI="; - }; - - makeFlags = [ "CC:=$(CC)" ]; - - installFlags = [ "PREFIX=$(out)" ]; - - meta = { - description = "Simple IRC client"; - mainProgram = "sic"; - homepage = "https://tools.suckless.org/sic/"; - license = lib.licenses.mit; - platforms = lib.platforms.unix; - }; -} diff --git a/pkgs/applications/networking/irc/srain/default.nix b/pkgs/applications/networking/irc/srain/default.nix deleted file mode 100644 index c083c1a8048a..000000000000 --- a/pkgs/applications/networking/irc/srain/default.nix +++ /dev/null @@ -1,63 +0,0 @@ -{ lib -, stdenv -, fetchFromGitHub -, pkg-config -, gtk3 -, libconfig -, libsoup_3 -, libsecret -, libayatana-appindicator -, openssl -, gettext -, glib -, glib-networking -, appstream-glib -, dbus-glib -, python3Packages -, meson -, ninja -, wrapGAppsHook3 -}: - -stdenv.mkDerivation rec { - pname = "srain"; - version = "1.7.0"; - - src = fetchFromGitHub { - owner = "SrainApp"; - repo = "srain"; - rev = version; - hash = "sha256-mhnlHnF23+VZvSPNuTYYUVcA6Md4y2AGqEuJphY1/IY="; - }; - - nativeBuildInputs = [ - meson - ninja - pkg-config - gettext - appstream-glib - wrapGAppsHook3 - python3Packages.sphinx - ]; - - buildInputs = [ - gtk3 - glib - glib-networking - dbus-glib - libconfig - libsoup_3 - libsecret - libayatana-appindicator - openssl - ]; - - meta = with lib; { - description = "Modern IRC client written in GTK"; - mainProgram = "srain"; - homepage = "https://srain.silverrainz.me"; - license = licenses.gpl3Plus; - platforms = platforms.linux; - maintainers = with maintainers; [ rewine ]; - }; -} diff --git a/pkgs/applications/networking/irc/thelounge/default.nix b/pkgs/applications/networking/irc/thelounge/default.nix deleted file mode 100644 index 1078f515c69a..000000000000 --- a/pkgs/applications/networking/irc/thelounge/default.nix +++ /dev/null @@ -1,93 +0,0 @@ -{ lib -, stdenv -, fetchFromGitHub -, fetchYarnDeps -, nodejs -, yarn -, fixup-yarn-lock -, python3 -, npmHooks -, darwin -, sqlite -, srcOnly -, buildPackages -, nixosTests -}: - -stdenv.mkDerivation (finalAttrs: { - pname = "thelounge"; - version = "4.4.1"; - - src = fetchFromGitHub { - owner = "thelounge"; - repo = "thelounge"; - rev = "v${finalAttrs.version}"; - hash = "sha256-4FdNYP9VLgv/rfvT7KHCF+ABFsZvPbJjfz6IvvDkRNA="; - }; - - # Allow setting package path for the NixOS module. - patches = [ ./packages-path.patch ]; - - # Use the NixOS module's state directory by default. - postPatch = '' - echo /var/lib/thelounge > .thelounge_home - ''; - - offlineCache = fetchYarnDeps { - yarnLock = "${finalAttrs.src}/yarn.lock"; - hash = "sha256-MM6SgVT7Pjdu96A4eWRucEzT7uNPxBqUDgHKl8mH2C0="; - }; - - nativeBuildInputs = [ nodejs yarn fixup-yarn-lock python3 npmHooks.npmInstallHook ] ++ lib.optional stdenv.isDarwin darwin.cctools; - buildInputs = [ sqlite ]; - - configurePhase = '' - runHook preConfigure - - export HOME="$PWD" - - fixup-yarn-lock yarn.lock - yarn config --offline set yarn-offline-mirror ${finalAttrs.offlineCache} - yarn install --offline --frozen-lockfile --ignore-platform --ignore-scripts --no-progress --non-interactive - patchShebangs node_modules - - runHook postConfigure - ''; - - buildPhase = '' - runHook preBuild - - NODE_ENV=production yarn build - - runHook postBuild - ''; - - # `npm prune` doesn't work and/or hangs for whatever reason. - preInstall = '' - yarn install --offline --frozen-lockfile --ignore-platform --ignore-scripts --no-progress --non-interactive --production - patchShebangs node_modules - - # Build the sqlite3 package. - npm_config_nodedir="${srcOnly nodejs}" npm_config_node_gyp="${buildPackages.nodejs}/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" npm rebuild --verbose --sqlite=${sqlite.dev} - - # These files seemingly aren't needed, and also might not exist when the Darwin sandbox is disabled? - rm -rf node_modules/sqlite3/build-tmp-napi-v6/{Release/obj.target,node_sqlite3.target.mk} - ''; - - dontNpmPrune = true; - - # Takes way, way, way too long. - dontStrip = true; - - passthru.tests = nixosTests.thelounge; - - meta = with lib; { - description = "Modern, responsive, cross-platform, self-hosted web IRC client"; - homepage = "https://thelounge.chat"; - changelog = "https://github.com/thelounge/thelounge/releases/tag/v${finalAttrs.version}"; - maintainers = with maintainers; [ winter raitobezarius ]; - license = licenses.mit; - inherit (nodejs.meta) platforms; - mainProgram = "thelounge"; - }; -}) diff --git a/pkgs/applications/networking/irc/thelounge/packages-path.patch b/pkgs/applications/networking/irc/thelounge/packages-path.patch deleted file mode 100644 index eb1ded070536..000000000000 --- a/pkgs/applications/networking/irc/thelounge/packages-path.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/server/config.ts b/server/config.ts -index 543a8135..9744f00d 100644 ---- a/server/config.ts -+++ b/server/config.ts -@@ -145,7 +145,7 @@ class Config { - } - - getPackagesPath() { -- return path.join(this.#homePath, "packages"); -+ return process.env.THELOUNGE_PACKAGES || path.join(this.#homePath, "packages"); - } - - getPackageModulePath(packageName: string) { diff --git a/pkgs/applications/networking/irc/tiny/Cargo.lock.patch b/pkgs/applications/networking/irc/tiny/Cargo.lock.patch deleted file mode 100644 index 775a7b717869..000000000000 --- a/pkgs/applications/networking/irc/tiny/Cargo.lock.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/Cargo.lock -+++ b/Cargo.lock -@@ -1535,7 +1535,7 @@ checksum = "7300fbefb4dadc1af235a9cef3737cea692a9d97e1b9cbcd4ebdae6f8868e6fb" - - [[package]] - name = "tiny" --version = "0.10.0" -+version = "0.11.0" - dependencies = [ - "clap", - "dirs", diff --git a/pkgs/applications/networking/irc/tiny/default.nix b/pkgs/applications/networking/irc/tiny/default.nix deleted file mode 100644 index 583723c0d147..000000000000 --- a/pkgs/applications/networking/irc/tiny/default.nix +++ /dev/null @@ -1,41 +0,0 @@ -{ stdenv -, lib -, rustPlatform -, fetchFromGitHub -, pkg-config -, Foundation -, dbusSupport ? stdenv.isLinux, dbus -# rustls will be used for TLS if useOpenSSL=false -, useOpenSSL ? stdenv.isLinux, openssl -, notificationSupport ? stdenv.isLinux -}: - -rustPlatform.buildRustPackage rec { - pname = "tiny"; - version = "0.12.0"; - - src = fetchFromGitHub { - owner = "osa1"; - repo = "tiny"; - rev = "v${version}"; - hash = "sha256-VlKhOHNggT+FbMvE/N2JQOJf0uB1N69HHdP09u89qSk="; - }; - - cargoHash = "sha256-AhQCfLCoJU7o8s+XL3hDOPmZi9QjOxXSA9uglA1KSuY="; - - nativeBuildInputs = lib.optional stdenv.isLinux pkg-config; - buildInputs = lib.optionals dbusSupport [ dbus ] - ++ lib.optionals useOpenSSL [ openssl ] - ++ lib.optional stdenv.isDarwin Foundation; - - buildFeatures = lib.optional notificationSupport "desktop-notifications"; - - meta = with lib; { - description = "Console IRC client"; - homepage = "https://github.com/osa1/tiny"; - changelog = "https://github.com/osa1/tiny/blob/v${version}/CHANGELOG.md"; - license = licenses.mit; - maintainers = with maintainers; [ Br1ght0ne vyp ]; - mainProgram = "tiny"; - }; -} diff --git a/pkgs/applications/networking/irc/weechat/default.nix b/pkgs/applications/networking/irc/weechat/default.nix deleted file mode 100644 index fe3ee483ae57..000000000000 --- a/pkgs/applications/networking/irc/weechat/default.nix +++ /dev/null @@ -1,104 +0,0 @@ -{ stdenv, fetchurl, lib -, ncurses, openssl, aspell, cjson, gnutls, gettext -, zlib, curl, pkg-config, libgcrypt -, cmake, libobjc, libresolv, libiconv -, asciidoctor # manpages -, enableTests ? !stdenv.isDarwin, cpputest -, guileSupport ? true, guile -, luaSupport ? true, lua5 -, perlSupport ? true, perl -, pythonSupport ? true, python3Packages -, rubySupport ? true, ruby -, tclSupport ? true, tcl -, phpSupport ? !stdenv.isDarwin, php, systemd, libxml2, pcre2, libargon2 -, extraBuildInputs ? [] -}: - -let - inherit (python3Packages) python; - php-embed = php.override { - embedSupport = true; - apxs2Support = false; - }; - plugins = [ - { name = "perl"; enabled = perlSupport; cmakeFlag = "ENABLE_PERL"; buildInputs = [ perl ]; } - { name = "tcl"; enabled = tclSupport; cmakeFlag = "ENABLE_TCL"; buildInputs = [ tcl ]; } - { name = "ruby"; enabled = rubySupport; cmakeFlag = "ENABLE_RUBY"; buildInputs = [ ruby ]; } - { name = "guile"; enabled = guileSupport; cmakeFlag = "ENABLE_GUILE"; buildInputs = [ guile ]; } - { name = "lua"; enabled = luaSupport; cmakeFlag = "ENABLE_LUA"; buildInputs = [ lua5 ]; } - { name = "python"; enabled = pythonSupport; cmakeFlag = "ENABLE_PYTHON3"; buildInputs = [ python ]; } - { name = "php"; enabled = phpSupport; cmakeFlag = "ENABLE_PHP"; buildInputs = [ - php-embed.unwrapped.dev libxml2 pcre2 libargon2 - ] ++ lib.optional stdenv.isLinux systemd; } - ]; - enabledPlugins = builtins.filter (p: p.enabled) plugins; - - in - assert lib.all (p: p.enabled -> ! (builtins.elem null p.buildInputs)) plugins; - stdenv.mkDerivation rec { - version = "4.3.2"; - pname = "weechat"; - - hardeningEnable = [ "pie" ]; - - src = fetchurl { - url = "https://weechat.org/files/src/weechat-${version}.tar.xz"; - hash = "sha256-4fMd490+4ZiRVvTATp9L9hOdpq1Qwk9pH8EFfkz8N8Y="; - }; - - # Why is this needed? https://github.com/weechat/weechat/issues/2031 - patches = lib.optional gettext.gettextNeedsLdflags ./gettext-intl.patch; - - outputs = [ "out" "man" ] ++ map (p: p.name) enabledPlugins; - - cmakeFlags = with lib; [ - "-DENABLE_MAN=ON" - "-DENABLE_DOC=ON" - "-DENABLE_DOC_INCOMPLETE=ON" - "-DENABLE_TESTS=${if enableTests then "ON" else "OFF"}" - ] - ++ optionals stdenv.isDarwin ["-DICONV_LIBRARY=${libiconv}/lib/libiconv.dylib"] - ++ map (p: "-D${p.cmakeFlag}=" + (if p.enabled then "ON" else "OFF")) plugins - ; - - nativeBuildInputs = [ cmake pkg-config asciidoctor ] ++ lib.optional enableTests cpputest; - buildInputs = with lib; [ - ncurses openssl aspell cjson gnutls gettext zlib curl - libgcrypt ] - ++ optionals stdenv.isDarwin [ libobjc libresolv ] - ++ concatMap (p: p.buildInputs) enabledPlugins - ++ extraBuildInputs; - - env.NIX_CFLAGS_COMPILE = "-I${python}/include/${python.libPrefix}" - # Fix '_res_9_init: undefined symbol' error - + (lib.optionalString stdenv.isDarwin "-DBIND_8_COMPAT=1 -lresolv"); - - postInstall = with lib; '' - for p in ${concatMapStringsSep " " (p: p.name) enabledPlugins}; do - from=$out/lib/weechat/plugins/$p.so - to=''${!p}/lib/weechat/plugins/$p.so - mkdir -p $(dirname $to) - mv $from $to - done - ''; - - doInstallCheck = true; - installCheckPhase = '' - $out/bin/weechat --version - ''; - - meta = { - homepage = "https://weechat.org/"; - changelog = "https://weechat.org/files/doc/weechat/ChangeLog-${version}.html"; - description = "Fast, light and extensible chat client"; - longDescription = '' - You can find more documentation as to how to customize this package - (e.g. adding python modules for scripts that would require them, etc.) - on https://nixos.org/nixpkgs/manual/#sec-weechat . - ''; - license = lib.licenses.gpl3; - maintainers = with lib.maintainers; [ ncfavier ]; - mainProgram = "weechat"; - platforms = lib.platforms.unix; - }; - } diff --git a/pkgs/applications/networking/irc/weechat/gettext-intl.patch b/pkgs/applications/networking/irc/weechat/gettext-intl.patch deleted file mode 100644 index 7b95472c06fa..000000000000 --- a/pkgs/applications/networking/irc/weechat/gettext-intl.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff --git a/cmake/FindGettext.cmake b/cmake/FindGettext.cmake -index 358734688..ffcbf7ef4 100644 ---- a/cmake/FindGettext.cmake -+++ b/cmake/FindGettext.cmake -@@ -42,6 +42,7 @@ find_path(LIBINTL_INCLUDE - ) - - set(CMAKE_REQUIRED_INCLUDES ${LIBINTL_INCLUDE}) -+set(CMAKE_REQUIRED_FLAGS "-lintl") - - check_include_files(libintl.h HAVE_LIBINTL_H) - diff --git a/pkgs/applications/networking/irc/weechat/scripts/autosort/default.nix b/pkgs/applications/networking/irc/weechat/scripts/autosort/default.nix deleted file mode 100644 index 6cbcc117af04..000000000000 --- a/pkgs/applications/networking/irc/weechat/scripts/autosort/default.nix +++ /dev/null @@ -1,29 +0,0 @@ -{ lib, stdenv, fetchurl, weechat }: - -stdenv.mkDerivation { - pname = "weechat-autosort"; - version = "3.10"; - - src = fetchurl { - url = "https://github.com/weechat/scripts/raw/13aef991ca879fc0ff116874a45b09bc2db10607/python/autosort.py"; - hash = "sha256-xuZUssjGd0l7lCx96d0V8LL+0O3zIxYlWMoDsdzwMf4="; - }; - - dontUnpack = true; - - installPhase = '' - mkdir -p $out/share - cp $src $out/share/autosort.py - ''; - - passthru = { - scripts = [ "autosort.py" ]; - }; - - meta = with lib; { - inherit (weechat.meta) platforms; - description = "autosort automatically keeps your buffers sorted and grouped by server"; - license = licenses.gpl3Plus; - maintainers = with maintainers; [ flokli ]; - }; -} diff --git a/pkgs/applications/networking/irc/weechat/scripts/buffer_autoset/default.nix b/pkgs/applications/networking/irc/weechat/scripts/buffer_autoset/default.nix deleted file mode 100644 index 9ef492962992..000000000000 --- a/pkgs/applications/networking/irc/weechat/scripts/buffer_autoset/default.nix +++ /dev/null @@ -1,26 +0,0 @@ -{ lib, stdenv, fetchurl, weechat }: - -stdenv.mkDerivation { - pname = "buffer_autoset"; - version = "1.2"; - - src = fetchurl { - url = "https://raw.githubusercontent.com/weechat/scripts/2b308b44df39ba6563d02b2bcd40c384ec2777dc/python/buffer_autoset.py"; - sha256 = "0csl3sfpijdbq1j6wabx347lvn91a24a2jfx5b5pspfxz7gixli1"; - }; - - dontUnpack = true; - - passthru.scripts = [ "buffer_autoset.py" ]; - - installPhase = '' - install -D $src $out/share/buffer_autoset.py - ''; - - meta = with lib; { - inherit (weechat.meta) platforms; - description = "buffer_autoset.py is a weechat script which auto-set buffer properties when a buffer is opened"; - license = licenses.gpl3Plus; - maintainers = with maintainers; [ govanify ]; - }; -} diff --git a/pkgs/applications/networking/irc/weechat/scripts/colorize_nicks/default.nix b/pkgs/applications/networking/irc/weechat/scripts/colorize_nicks/default.nix deleted file mode 100644 index 0b6d355797f3..000000000000 --- a/pkgs/applications/networking/irc/weechat/scripts/colorize_nicks/default.nix +++ /dev/null @@ -1,29 +0,0 @@ -{ stdenv, lib, fetchurl, weechat }: - -stdenv.mkDerivation { - pname = "weechat-colorize_nicks"; - version = "27"; - - src = fetchurl { - url = "https://github.com/weechat/scripts/raw/bc8a9051800779a036ba11689a277cd5f03657b2/python/colorize_nicks.py"; - sha256 = "0hiay88vvy171jiq6ahflm0ipb7sslfxwhmmm8psv6qk19rv2sxs"; - }; - - dontUnpack = true; - - installPhase = '' - mkdir -p $out/share - cp $src $out/share/colorize_nicks.py - ''; - - passthru = { - scripts = [ "colorize_nicks.py" ]; - }; - - meta = with lib; { - inherit (weechat.meta) platforms; - description = "Use the weechat nick colors in the chat area"; - license = licenses.gpl2Plus; - maintainers = with maintainers; [ qyliss ]; - }; -} diff --git a/pkgs/applications/networking/irc/weechat/scripts/default.nix b/pkgs/applications/networking/irc/weechat/scripts/default.nix deleted file mode 100644 index 1825ee3f5d7a..000000000000 --- a/pkgs/applications/networking/irc/weechat/scripts/default.nix +++ /dev/null @@ -1,39 +0,0 @@ -{ callPackage, luaPackages, perlPackages, python3Packages }: - -{ - autosort = callPackage ./autosort { }; - - colorize_nicks = callPackage ./colorize_nicks { }; - - edit = callPackage ./edit { }; - - multiline = callPackage ./multiline { - inherit (perlPackages) PodParser; - }; - - url_hint = callPackage ./url_hint { }; - - weechat-grep = callPackage ./weechat-grep { }; - - weechat-matrix-bridge = callPackage ./weechat-matrix-bridge { - inherit (luaPackages) cjson luaffi; - }; - - weechat-matrix = python3Packages.callPackage ./weechat-matrix { }; - - weechat-notify-send = python3Packages.callPackage ./weechat-notify-send { }; - - wee-slack = callPackage ./wee-slack { }; - - weechat-autosort = callPackage ./weechat-autosort { }; - - weechat-otr = callPackage ./weechat-otr { }; - - weechat-go = callPackage ./weechat-go { }; - - buffer_autoset = callPackage ./buffer_autoset { }; - - highmon = callPackage ./highmon { }; - - zncplayback = callPackage ./zncplayback { }; -} diff --git a/pkgs/applications/networking/irc/weechat/scripts/edit/default.nix b/pkgs/applications/networking/irc/weechat/scripts/edit/default.nix deleted file mode 100644 index b510c17ac1e9..000000000000 --- a/pkgs/applications/networking/irc/weechat/scripts/edit/default.nix +++ /dev/null @@ -1,30 +0,0 @@ -{ lib, stdenv, fetchFromGitHub, weechat }: - -stdenv.mkDerivation rec { - pname = "edit-weechat"; - version = "1.0.2"; - - src = fetchFromGitHub { - owner = "keith"; - repo = "edit-weechat"; - rev = version; - sha256 = "1s42r0l0xkhlp6rbc23cm4vlda91il6cg53w33hqfhd2wz91s66w"; - }; - - dontBuild = true; - - passthru.scripts = [ "edit.py" ]; - - installPhase = '' - runHook preInstall - install -D edit.py $out/share/edit.py - runHook postInstall - ''; - - meta = with lib; { - inherit (weechat.meta) platforms; - description = "This simple weechat plugin allows you to compose messages in your $EDITOR"; - license = licenses.mit; - maintainers = with maintainers; [ eraserhd ]; - }; -} diff --git a/pkgs/applications/networking/irc/weechat/scripts/highmon/default.nix b/pkgs/applications/networking/irc/weechat/scripts/highmon/default.nix deleted file mode 100644 index d221a0cf972c..000000000000 --- a/pkgs/applications/networking/irc/weechat/scripts/highmon/default.nix +++ /dev/null @@ -1,31 +0,0 @@ -{ lib, stdenv, fetchurl, weechat }: - -stdenv.mkDerivation { - pname = "highmon"; - version = "2.7"; - - src = fetchurl { - url = "https://raw.githubusercontent.com/KenjiE20/highmon/182e67d070c75efc81999e68c2ac7fdfe44d2872/highmon.pl"; - sha256 = "1vvgzscb12l3cp2nq954fx6j3awvpjsb0nqylal51ps9cq9a3wir"; - }; - - dontUnpack = true; - - passthru.scripts = [ "highmon.pl" ]; - - installPhase = '' - runHook preInstall - - install -D $src $out/share/highmon.pl - - runHook postInstall - ''; - - meta = with lib; { - inherit (weechat.meta) platforms; - homepage = "https://github.com/KenjiE20/highmon/"; - description = "highmon.pl is a weechat script that adds 'Highlight Monitor'"; - license = licenses.gpl3Plus; - maintainers = with maintainers; [ govanify ]; - }; -} diff --git a/pkgs/applications/networking/irc/weechat/scripts/multiline/default.nix b/pkgs/applications/networking/irc/weechat/scripts/multiline/default.nix deleted file mode 100644 index f61b4391e18d..000000000000 --- a/pkgs/applications/networking/irc/weechat/scripts/multiline/default.nix +++ /dev/null @@ -1,40 +0,0 @@ -{ stdenv, lib, fetchurl, substituteAll, PodParser }: - -stdenv.mkDerivation { - pname = "multiline"; - version = "0.6.4"; - - src = fetchurl { - url = "https://raw.githubusercontent.com/weechat/scripts/5f073d966e98d54344a91be4f5afc0ec9e2697dc/perl/multiline.pl"; - sha256 = "sha256-TXbU2Q7Tm8iTwOQqrWpqHXuKrjoBFLyUWRsH+TsR9Lo="; - }; - - dontUnpack = true; - prePatch = '' - cp $src multiline.pl - ''; - - patches = [ - # The script requires a special Perl environment. - (substituteAll { - src = ./libpath.patch; - env = PodParser; - }) - ]; - - passthru.scripts = [ "multiline.pl" ]; - - installPhase = '' - runHook preInstall - - install -D multiline.pl $out/share/multiline.pl - - runHook postInstall - ''; - - meta = with lib; { - description = "Multi-line edit box"; - license = licenses.gpl3Plus; - maintainers = with maintainers; [ oxzi ]; - }; -} diff --git a/pkgs/applications/networking/irc/weechat/scripts/multiline/libpath.patch b/pkgs/applications/networking/irc/weechat/scripts/multiline/libpath.patch deleted file mode 100644 index 34299f20d8c2..000000000000 --- a/pkgs/applications/networking/irc/weechat/scripts/multiline/libpath.patch +++ /dev/null @@ -1,9 +0,0 @@ -diff --git a/multiline.pl b/multiline.pl -index 54474d4..42fbef8 100644 ---- a/multiline.pl -+++ b/multiline.pl -@@ -1,3 +1,4 @@ -+use lib '@env@/lib/perl5/site_perl'; - use strict; use warnings; - $INC{'Encode/ConfigLocal.pm'}=1; - require Encode; diff --git a/pkgs/applications/networking/irc/weechat/scripts/url_hint/default.nix b/pkgs/applications/networking/irc/weechat/scripts/url_hint/default.nix deleted file mode 100644 index 38df127d14cf..000000000000 --- a/pkgs/applications/networking/irc/weechat/scripts/url_hint/default.nix +++ /dev/null @@ -1,28 +0,0 @@ -{ lib, stdenv, fetchurl, weechat }: - -stdenv.mkDerivation { - pname = "url_hint"; - version = "0.8"; - - src = fetchurl { - url = "https://raw.githubusercontent.com/weechat/scripts/10671d785ea3f9619d0afd0d7a1158bfa4ee3938/python/url_hint.py"; - sha256 = "0aw59kq74yqh0qbdkldfl6l83d0bz833232xr2w4741szck43kss"; - }; - - dontUnpack = true; - - passthru.scripts = [ "url_hint.py" ]; - - installPhase = '' - runHook preInstall - install -D $src $out/share/url_hint.py - runHook postInstall - ''; - - meta = with lib; { - inherit (weechat.meta) platforms; - description = "url_hint.py is a URL opening script"; - license = licenses.mit; - maintainers = with maintainers; [ eraserhd ]; - }; -} diff --git a/pkgs/applications/networking/irc/weechat/scripts/wee-slack/default.nix b/pkgs/applications/networking/irc/weechat/scripts/wee-slack/default.nix deleted file mode 100644 index 46d676682b5b..000000000000 --- a/pkgs/applications/networking/irc/weechat/scripts/wee-slack/default.nix +++ /dev/null @@ -1,48 +0,0 @@ -{ lib, stdenv, substituteAll, buildEnv, fetchFromGitHub, python3Packages }: - -stdenv.mkDerivation rec { - pname = "wee-slack"; - version = "2.10.2"; - - src = fetchFromGitHub { - repo = "wee-slack"; - owner = "wee-slack"; - rev = "v${version}"; - sha256 = "sha256-EtPhaNFYDxxSrSLXHHnY4ARpRycNNxbg5QPKtnPem04="; - }; - - patches = [ - (substituteAll { - src = ./libpath.patch; - env = "${buildEnv { - name = "wee-slack-env"; - paths = with python3Packages; [ - websocket-client - six - ]; - }}/${python3Packages.python.sitePackages}"; - }) - ./load_weemoji_path.patch - ]; - - postPatch = '' - substituteInPlace wee_slack.py --subst-var out - ''; - - passthru.scripts = [ "wee_slack.py" ]; - - installPhase = '' - mkdir -p $out/share - cp wee_slack.py $out/share/wee_slack.py - install -D -m 0444 weemoji.json $out/share/wee-slack/weemoji.json - ''; - - meta = with lib; { - homepage = "https://github.com/wee-slack/wee-slack"; - license = licenses.mit; - maintainers = with maintainers; [ willibutz ]; - description = '' - A WeeChat plugin for Slack.com. Synchronizes read markers, provides typing notification, search, etc.. - ''; - }; -} diff --git a/pkgs/applications/networking/irc/weechat/scripts/wee-slack/libpath.patch b/pkgs/applications/networking/irc/weechat/scripts/wee-slack/libpath.patch deleted file mode 100644 index a6e38c16fb14..000000000000 --- a/pkgs/applications/networking/irc/weechat/scripts/wee-slack/libpath.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/wee_slack.py b/wee_slack.py -index e4716b4..f673b7c 100644 ---- a/wee_slack.py -+++ b/wee_slack.py -@@ -31,6 +31,8 @@ import string - # See https://github.com/numpy/numpy/issues/11925 - sys.modules["numpy"] = None - -+sys.path.append('@env@') -+ - from websocket import ( # noqa: E402 - ABNF, - create_connection, diff --git a/pkgs/applications/networking/irc/weechat/scripts/wee-slack/load_weemoji_path.patch b/pkgs/applications/networking/irc/weechat/scripts/wee-slack/load_weemoji_path.patch deleted file mode 100644 index 1e97dc32fa65..000000000000 --- a/pkgs/applications/networking/irc/weechat/scripts/wee-slack/load_weemoji_path.patch +++ /dev/null @@ -1,25 +0,0 @@ -diff --git a/wee_slack.py b/wee_slack.py -index e4716b4..ffd122d 100644 ---- a/wee_slack.py -+++ b/wee_slack.py -@@ -6092,19 +6092,7 @@ def create_slack_debug_buffer(): - - def load_emoji(): - try: -- weechat_dir = w.info_get("weechat_data_dir", "") or w.info_get( -- "weechat_dir", "" -- ) -- weechat_sharedir = w.info_get("weechat_sharedir", "") -- local_weemoji, global_weemoji = ( -- "{}/weemoji.json".format(path) for path in (weechat_dir, weechat_sharedir) -- ) -- path = ( -- global_weemoji -- if os.path.exists(global_weemoji) and not os.path.exists(local_weemoji) -- else local_weemoji -- ) -- with open(path, "r") as ef: -+ with open("@out@/share/wee-slack/weemoji.json", "r") as ef: - emojis = json.loads(ef.read()) - if "emoji" in emojis: - print_error( diff --git a/pkgs/applications/networking/irc/weechat/scripts/weechat-autosort/default.nix b/pkgs/applications/networking/irc/weechat/scripts/weechat-autosort/default.nix deleted file mode 100644 index 010470c6fbaa..000000000000 --- a/pkgs/applications/networking/irc/weechat/scripts/weechat-autosort/default.nix +++ /dev/null @@ -1,25 +0,0 @@ -{ lib, stdenv, fetchFromGitHub }: - -stdenv.mkDerivation rec { - pname = "weechat-autosort"; - version = "3.9"; - - src = fetchFromGitHub { - owner = "de-vri-es"; - repo = pname; - rev = "d62fa8633015ebc2676060fcdae88c402977be46"; - sha256 = "sha256-doYDRIWiuHam2i3r3J3BZuWEhopoN4jms/xPXGyypok="; - }; - - passthru.scripts = [ "autosort.py" ]; - installPhase = '' - install -D autosort.py $out/share/autosort.py - ''; - - meta = with lib; { - description = "Autosort is a weechat script to automatically or manually keep your buffers sorted"; - homepage = "https://github.com/de-vri-es/weechat-autosort"; - license = licenses.gpl3Plus; - maintainers = with maintainers; [ flokli ]; - }; -} diff --git a/pkgs/applications/networking/irc/weechat/scripts/weechat-go/default.nix b/pkgs/applications/networking/irc/weechat/scripts/weechat-go/default.nix deleted file mode 100644 index 623b2570b475..000000000000 --- a/pkgs/applications/networking/irc/weechat/scripts/weechat-go/default.nix +++ /dev/null @@ -1,26 +0,0 @@ -{ lib, stdenv, fetchurl, weechat }: - -stdenv.mkDerivation { - pname = "weechat-go"; - version = "2.7"; - - src = fetchurl { - url = "https://github.com/weechat/scripts/raw/414cff3ee605ba204b607742430a21443c035b08/python/go.py"; - sha256 = "0bnbfpj1qg4yzwbikh1aw5ajc8l44lkb0y0m6mz8grpf5bxk5cwm"; - }; - - dontUnpack = true; - - passthru.scripts = [ "go.py" ]; - - installPhase = '' - install -D $src $out/share/go.py - ''; - - meta = with lib; { - inherit (weechat.meta) platforms; - description = "go.py is a weechat script to quickly jump to different buffers"; - license = licenses.gpl3Plus; - maintainers = with maintainers; [ govanify ]; - }; -} diff --git a/pkgs/applications/networking/irc/weechat/scripts/weechat-grep/default.nix b/pkgs/applications/networking/irc/weechat/scripts/weechat-grep/default.nix deleted file mode 100644 index efc575bd3e29..000000000000 --- a/pkgs/applications/networking/irc/weechat/scripts/weechat-grep/default.nix +++ /dev/null @@ -1,29 +0,0 @@ -{ lib, stdenv, fetchurl }: - -stdenv.mkDerivation rec { - pname = "weechat-grep"; - version = "0.8.5"; - - src = fetchurl { - url = "https://github.com/weechat/scripts/raw/5ee93d56f371c829d2798a5446a14292c180f70b/python/grep.py"; - sha256 = "sha256-EVcoxjTTjXOYD8DppD+IULxpKerEdolmlgphrulFGC0="; - }; - - dontUnpack = true; - - installPhase = '' - mkdir -p $out/share - cp $src $out/share/grep.py - ''; - - passthru = { - scripts = [ "grep.py" ]; - }; - - meta = with lib; { - description = "Search in Weechat buffers and logs (for Weechat 0.3.*)"; - homepage = "https://github.com/weechat/scripts/blob/master/python/grep.py"; - license = licenses.gpl3Plus; - maintainers = with maintainers; [ flokli ]; - }; -} diff --git a/pkgs/applications/networking/irc/weechat/scripts/weechat-matrix-bridge/default.nix b/pkgs/applications/networking/irc/weechat/scripts/weechat-matrix-bridge/default.nix deleted file mode 100644 index 46cb08594ee0..000000000000 --- a/pkgs/applications/networking/irc/weechat/scripts/weechat-matrix-bridge/default.nix +++ /dev/null @@ -1,51 +0,0 @@ -{ lib, stdenv, curl, fetchFromGitHub, cjson, olm, luaffi }: - -stdenv.mkDerivation { - pname = "weechat-matrix-bridge"; - version = "unstable-2018-11-19"; - src = fetchFromGitHub { - owner = "torhve"; - repo = "weechat-matrix-protocol-script"; - rev = "8d32e90d864a8f3f09ecc2857cd5dd6e39a8c3f7"; - sha256 = "0qqd6qmkrdc0r3rnl53c3yp93fbcz7d3mdw3vq5gmdqxyym4s9lj"; - }; - - patches = [ - ./library-path.patch - ]; - - buildInputs = [ curl cjson olm luaffi ]; - - postPatch = '' - substituteInPlace matrix.lua \ - --replace "/usr/bin/curl" "${curl}/bin/curl" \ - --replace "__NIX_LIB_PATH__" "$out/lib/?.so" \ - --replace "__NIX_OLM_PATH__" "$out/share/?.lua" - - substituteInPlace olm.lua \ - --replace "__NIX_LIB_PATH__" "$out/lib/?.so" - ''; - - passthru.scripts = [ "matrix.lua" ]; - - installPhase = '' - mkdir -p $out/{share,lib} - - cp {matrix.lua,olm.lua} $out/share - cp ${cjson}/lib/lua/${cjson.lua.luaversion}/cjson.so $out/lib/cjson.so - cp ${olm}/lib/libolm.so $out/lib/libolm.so - cp ${luaffi}/lib/lua/${luaffi.lua.luaversion}/ffi.so $out/lib/ffi.so - ''; - - meta = with lib; { - description = "WeeChat script in Lua that implements the matrix.org chat protocol"; - homepage = "https://github.com/torhve/weechat-matrix-protocol-script"; - maintainers = with maintainers; [ ]; - license = licenses.mit; # see https://github.com/torhve/weechat-matrix-protocol-script/blob/0052e7275ae149dc5241226391c9b1889ecc3c6b/matrix.lua#L53 - platforms = platforms.unix; - - # As of 2019-06-30, all of the dependencies are available on macOS but the - # package itself does not build. - broken = stdenv.isDarwin; - }; -} diff --git a/pkgs/applications/networking/irc/weechat/scripts/weechat-matrix-bridge/library-path.patch b/pkgs/applications/networking/irc/weechat/scripts/weechat-matrix-bridge/library-path.patch deleted file mode 100644 index d9945c2993b7..000000000000 --- a/pkgs/applications/networking/irc/weechat/scripts/weechat-matrix-bridge/library-path.patch +++ /dev/null @@ -1,28 +0,0 @@ -diff --git a/matrix.lua b/matrix.lua -index b79f500..32b37a2 100644 ---- a/matrix.lua -+++ b/matrix.lua -@@ -43,6 +43,9 @@ This script maps this as follows: - - ]] - -+package.cpath = package.cpath .. ";__NIX_LIB_PATH__" -+package.path = package.path .. ";__NIX_OLM_PATH__" -+ - local json = require 'cjson' -- apt-get install lua-cjson - local olmstatus, olm = pcall(require, 'olm') -- LuaJIT olm FFI binding ln -s ~/olm/olm.lua /usr/local/share/lua/5.1 - local w = weechat -diff --git a/olm.lua b/olm.lua -index 114649c..4828371 100644 ---- a/olm.lua -+++ b/olm.lua -@@ -17,6 +17,9 @@ - * limitations under the License. - */ - --]] -+ -+package.cpath = package.cpath .. ";__NIX_LIB_PATH__" -+ - local ffi = require'ffi' - - ffi.cdef[[ diff --git a/pkgs/applications/networking/irc/weechat/scripts/weechat-matrix/default.nix b/pkgs/applications/networking/irc/weechat/scripts/weechat-matrix/default.nix deleted file mode 100644 index a67903c6fe98..000000000000 --- a/pkgs/applications/networking/irc/weechat/scripts/weechat-matrix/default.nix +++ /dev/null @@ -1,104 +0,0 @@ -{ buildPythonPackage -, lib -, python -, fetchFromGitHub -, fetchpatch -, pyopenssl -, webcolors -, future -, atomicwrites -, attrs -, logbook -, pygments -, matrix-nio -, aiohttp -, requests -}: - -let - scriptPython = python.withPackages (ps: with ps; [ - aiohttp - requests - python-magic - ]); - - version = "0.3.0"; -in buildPythonPackage { - pname = "weechat-matrix"; - inherit version; - - src = fetchFromGitHub { - owner = "poljar"; - repo = "weechat-matrix"; - rev = version; - hash = "sha256-o4kgneszVLENG167nWnk2FxM+PsMzi+PSyMUMIktZcc="; - }; - - patches = [ - # server: remove set_npn_protocols() - (fetchpatch { - url = "https://patch-diff.githubusercontent.com/raw/poljar/weechat-matrix/pull/309.patch"; - hash = "sha256-Grdht+TOFvCYRpL7uhPivqL7YzLoNVF3iQNHgbv1Te0="; - }) - # Fix compatibility with matrix-nio 0.21 - (fetchpatch { - url = "https://github.com/poljar/weechat-matrix/commit/feae9fda26ea9de98da9cd6733980a203115537e.patch"; - hash = "sha256-MAfxJ85dqz5PNwp/GJdHA2VvXVdWh+Ayx5g0oHiw9rs="; - includes = ["matrix/config.py"]; - }) - ]; - - propagatedBuildInputs = [ - pyopenssl - webcolors - future - atomicwrites - attrs - logbook - pygments - matrix-nio - aiohttp - requests - ] ++ matrix-nio.optional-dependencies.e2e; - - passthru.scripts = [ "matrix.py" ]; - - dontBuild = true; - doCheck = false; - - format = "other"; - - installPhase = '' - mkdir -p $out/share $out/bin - cp main.py $out/share/matrix.py - - cp contrib/matrix_upload.py $out/bin/matrix_upload - cp contrib/matrix_decrypt.py $out/bin/matrix_decrypt - cp contrib/matrix_sso_helper.py $out/bin/matrix_sso_helper - substituteInPlace $out/bin/matrix_upload \ - --replace-fail '/usr/bin/env -S python3' '${scriptPython}/bin/python' - substituteInPlace $out/bin/matrix_sso_helper \ - --replace-fail '/usr/bin/env -S python3' '${scriptPython}/bin/python' - substituteInPlace $out/bin/matrix_decrypt \ - --replace-fail '/usr/bin/env python3' '${scriptPython}/bin/python' - - mkdir -p $out/${python.sitePackages} - cp -r matrix $out/${python.sitePackages}/matrix - ''; - - dontPatchShebangs = true; - postFixup = '' - addToSearchPath program_PYTHONPATH $out/${python.sitePackages} - patchPythonScript $out/share/matrix.py - substituteInPlace $out/${python.sitePackages}/matrix/server.py --replace-fail \"matrix_sso_helper\" \"$out/bin/matrix_sso_helper\" - substituteInPlace $out/${python.sitePackages}/matrix/uploads.py --replace-fail \"matrix_upload\" \"$out/bin/matrix_upload\" - ''; - - meta = with lib; { - description = "Python plugin for Weechat that lets Weechat communicate over the Matrix protocol"; - homepage = "https://github.com/poljar/weechat-matrix"; - license = licenses.isc; - platforms = platforms.unix; - maintainers = with maintainers; [ tilpner ]; - }; -} diff --git a/pkgs/applications/networking/irc/weechat/scripts/weechat-notify-send/default.nix b/pkgs/applications/networking/irc/weechat/scripts/weechat-notify-send/default.nix deleted file mode 100644 index abd289d99037..000000000000 --- a/pkgs/applications/networking/irc/weechat/scripts/weechat-notify-send/default.nix +++ /dev/null @@ -1,31 +0,0 @@ -{ lib, stdenv, fetchFromGitHub, libnotify }: - -stdenv.mkDerivation rec { - pname = "weechat-notify-send"; - version = "0.10"; - - src = fetchFromGitHub { - owner = "s3rvac"; - repo = pname; - rev = "v${version}"; - sha256 = "sha256-7uw0IdRSxhPrLqdgECKB9eOrtFj+2HTILBhakKiRuNQ="; - }; - - passthru.scripts = [ "notify_send.py" ]; - - dontBuild = true; - doCheck = false; - - installPhase = '' - install -D notify_send.py $out/share/notify_send.py - substituteInPlace $out/share/notify_send.py \ - --replace "'notify-send'" "'${libnotify}/bin/notify-send'" - ''; - - meta = with lib; { - description = "WeeChat script that sends highlight and message notifications through notify-send"; - homepage = "https://github.com/s3rvac/weechat-notify-send"; - license = licenses.mit; - maintainers = with maintainers; [ tobim ]; - }; -} diff --git a/pkgs/applications/networking/irc/weechat/scripts/weechat-otr/default.nix b/pkgs/applications/networking/irc/weechat/scripts/weechat-otr/default.nix deleted file mode 100644 index fd5f376ad263..000000000000 --- a/pkgs/applications/networking/irc/weechat/scripts/weechat-otr/default.nix +++ /dev/null @@ -1,77 +0,0 @@ -{ lib, stdenv, substituteAll, buildEnv, fetchgit, fetchFromGitHub, python3Packages, gmp }: - -let - # pure-python-otr (potr) requires an older version of pycrypto, which is - # not compatible with pycryptodome. Therefore, the latest patched version - # of pycrypto will be fetched from the Debian project. - # https://security-tracker.debian.org/tracker/source-package/python-crypto - - pycrypto = python3Packages.buildPythonPackage rec { - pname = "pycrypto"; - version = "2.6.1-13.1"; - - src = fetchgit { - url = "https://salsa.debian.org/sramacher/python-crypto.git"; - rev = "debian/${version}"; - sha256 = "1mahqmlgilgk0rn5hfkhza7kscfm7agdakkb6rqnif9g0qp3s52f"; - }; - - postPatch = '' - for p in debian/patches/*.patch; do - patch -p1 < "$p" - done - ''; - - buildInputs = [ gmp ]; - - # Tests are relying on old Python 2 modules. - doCheck = false; - - preConfigure = '' - sed -i 's,/usr/include,/no-such-dir,' configure - sed -i "s!,'/usr/include/'!!" setup.py - ''; - }; - - potr = python3Packages.potr.overridePythonAttrs (oldAttrs: { - propagatedBuildInputs = [ pycrypto ]; - }); -in stdenv.mkDerivation rec { - pname = "weechat-otr"; - version = "1.9.2"; - - src = fetchFromGitHub { - repo = pname; - owner = "mmb"; - rev = "v${version}"; - sha256 = "1lngv98y6883vk8z2628cl4d5y8jxy39w8245gjdvshl8g18k5s2"; - }; - - patches = [ - (substituteAll { - src = ./libpath.patch; - env = "${buildEnv { - name = "weechat-otr-env"; - paths = [ potr pycrypto ]; - }}/${python3Packages.python.sitePackages}"; - }) - ]; - - passthru.scripts = [ "weechat_otr.py" ]; - - installPhase = '' - mkdir -p $out/share - cp weechat_otr.py $out/share/weechat_otr.py - ''; - - meta = with lib; { - homepage = "https://github.com/mmb/weechat-otr"; - license = licenses.gpl3; - maintainers = with maintainers; [ oxzi ]; - description = "WeeChat script for Off-the-Record messaging"; - knownVulnerabilities = [ - "There is no upstream release since 2018-03." - "Utilizes deprecated and vulnerable pycrypto library with Debian patches from 2020-04." - ]; - }; -} diff --git a/pkgs/applications/networking/irc/weechat/scripts/weechat-otr/libpath.patch b/pkgs/applications/networking/irc/weechat/scripts/weechat-otr/libpath.patch deleted file mode 100644 index a7b77ed9b602..000000000000 --- a/pkgs/applications/networking/irc/weechat/scripts/weechat-otr/libpath.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/weechat_otr.py b/weechat_otr.py -index 0ccfb35..c42bebf 100644 ---- a/weechat_otr.py -+++ b/weechat_otr.py -@@ -41,6 +41,8 @@ import shlex - import shutil - import sys - -+sys.path.append('@env@') -+ - import potr - import weechat - diff --git a/pkgs/applications/networking/irc/weechat/scripts/zncplayback/default.nix b/pkgs/applications/networking/irc/weechat/scripts/zncplayback/default.nix deleted file mode 100644 index d15b130cae28..000000000000 --- a/pkgs/applications/networking/irc/weechat/scripts/zncplayback/default.nix +++ /dev/null @@ -1,28 +0,0 @@ -{ lib, stdenv, fetchurl }: - -stdenv.mkDerivation { - pname = "weechat-zncplayback"; - version = "0.2.1"; - - src = fetchurl { - url = "https://github.com/weechat/scripts/raw/bcc9643136addd2cd68ac957dd64e336e4f88aa1/python/zncplayback.py"; - sha256 = "1k32p6naxg40g664ip48zvm61xza7l9az3v3rawmjw97i0mwz7y3"; - }; - - dontUnpack = true; - - installPhase = '' - mkdir -p $out/share - cp $src $out/share/zncplayback.py - ''; - - passthru = { - scripts = [ "zncplayback.py" ]; - }; - - meta = with lib; { - description = "Add support for the ZNC Playback module"; - license = licenses.gpl2Plus; - maintainers = with maintainers; [ qyliss ]; - }; -} diff --git a/pkgs/applications/networking/irc/weechat/wrapper.nix b/pkgs/applications/networking/irc/weechat/wrapper.nix deleted file mode 100644 index 353b7ffd6fda..000000000000 --- a/pkgs/applications/networking/irc/weechat/wrapper.nix +++ /dev/null @@ -1,97 +0,0 @@ -{ lib, runCommand, writeScriptBin, buildEnv -, python3Packages, perlPackages, runtimeShell -}: - -weechat: - -let - wrapper = { - installManPages ? true - , configure ? { availablePlugins, ... }: { - # Do not include PHP by default, because it bloats the closure, doesn't - # build on Darwin, and there are no official PHP scripts. - plugins = builtins.attrValues (builtins.removeAttrs availablePlugins [ "php" ]); - } - }: - - let - perlInterpreter = perlPackages.perl; - availablePlugins = let - simplePlugin = name: {pluginFile = "${weechat.${name}}/lib/weechat/plugins/${name}.so";}; - in rec { - python = (simplePlugin "python") // { - extraEnv = '' - export PATH="${python3Packages.python}/bin:$PATH" - ''; - withPackages = pkgsFun: (python // { - extraEnv = '' - ${python.extraEnv} - export PYTHONHOME="${python3Packages.python.withPackages pkgsFun}" - ''; - }); - }; - perl = (simplePlugin "perl") // { - extraEnv = '' - export PATH="${perlInterpreter}/bin:$PATH" - ''; - withPackages = pkgsFun: (perl // { - extraEnv = '' - ${perl.extraEnv} - export PERL5LIB=${perlPackages.makeFullPerlPath (pkgsFun perlPackages)} - ''; - }); - }; - tcl = simplePlugin "tcl"; - ruby = simplePlugin "ruby"; - guile = simplePlugin "guile"; - lua = simplePlugin "lua"; - php = simplePlugin "php"; - }; - - config = configure { inherit availablePlugins; }; - - plugins = config.plugins or (builtins.attrValues availablePlugins); - - pluginsDir = runCommand "weechat-plugins" {} '' - mkdir -p $out/plugins - for plugin in ${lib.concatMapStringsSep " " (p: p.pluginFile) plugins} ; do - ln -s $plugin $out/plugins - done - ''; - - init = let - init = builtins.replaceStrings [ "\n" ] [ ";" ] (config.init or ""); - - mkScript = drv: lib.forEach drv.scripts (script: "/script load ${drv}/share/${script}"); - - scripts = builtins.concatStringsSep ";" (lib.foldl (scripts: drv: scripts ++ mkScript drv) - [ ] (config.scripts or [])); - in "${scripts};${init}"; - - mkWeechat = bin: (writeScriptBin bin '' - #!${runtimeShell} - export WEECHAT_EXTRA_LIBDIR=${pluginsDir} - ${lib.concatMapStringsSep "\n" (p: lib.optionalString (p ? extraEnv) p.extraEnv) plugins} - exec ${weechat}/bin/${bin} "$@" --run-command ${lib.escapeShellArg init} - '') // { - inherit (weechat) name man; - unwrapped = weechat; - outputs = [ "out" "man" ]; - }; - in buildEnv { - name = "weechat-bin-env-${weechat.version}"; - extraOutputsToInstall = lib.optionals installManPages [ "man" ]; - paths = [ - (mkWeechat "weechat") - (mkWeechat "weechat-headless") - (runCommand "weechat-out-except-bin" { } '' - mkdir $out - ln -sf ${weechat}/include $out/include - ln -sf ${weechat}/lib $out/lib - ln -sf ${weechat}/share $out/share - '') - ]; - meta = builtins.removeAttrs weechat.meta [ "outputsToInstall" ]; - }; - -in lib.makeOverridable wrapper diff --git a/pkgs/applications/networking/irc/wraith/configure.patch b/pkgs/applications/networking/irc/wraith/configure.patch deleted file mode 100644 index 2ecba77920eb..000000000000 --- a/pkgs/applications/networking/irc/wraith/configure.patch +++ /dev/null @@ -1,58 +0,0 @@ ---- a/configure -+++ b/configure -@@ -6143,53 +6143,8 @@ rm -f confcache - #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h) - #AC_CHECK_HEADERS(zlib.h) - --{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for path to OpenSSL" >&5 --$as_echo_n "checking for path to OpenSSL... " >&6; } -- -- --# Check whether --with-openssl was given. --if test "${with_openssl+set}" = set; then : -- withval=$with_openssl; with_openssl_path=$withval --else -- with_openssl_path=auto --fi -- -- -- --cf_openssl_basedir="" --if test "$with_openssl_path" != "auto"; then -- cf_openssl_basedir="`echo ${with_openssl_path} | sed 's/\/$//'`" --else -- for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/local/openssl; do -- if test -f "${dirs}/include/openssl/opensslv.h" && test -f "${dirs}/lib/libssl.so"; then -- cf_openssl_basedir="${dirs}" -- break -- fi -- done -- unset dirs --fi --if test ! -z "$cf_openssl_basedir"; then -- if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" && test -f "${cf_openssl_basedir}/lib/libssl.so"; then -- SSL_INCLUDES="-I${cf_openssl_basedir}/include" -- SSL_LIBS="-L${cf_openssl_basedir}/lib" -- else -- cf_openssl_basedir="" -- fi --else -- if test -f "/usr/include/openssl/opensslv.h" ; then -- cf_openssl_basedir="/usr" -- fi --fi -- --if test ! -z "$cf_openssl_basedir"; then -- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5 --$as_echo "$cf_openssl_basedir" >&6; } --else -- { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 --$as_echo "not found" >&6; } -- as_fn_error 1 "OpenSSL is required." "$LINENO" 5 --fi --unset cf_openssl_basedir -+SSL_INCLUDES="-I@openssl.dev@/include" -+SSL_LIBS="-L@openssl-lib@/lib" - - save_CXX="$CXX" - CXX="$CXX $SSL_INCLUDES" diff --git a/pkgs/applications/networking/irc/wraith/default.nix b/pkgs/applications/networking/irc/wraith/default.nix deleted file mode 100644 index c059babffe7b..000000000000 --- a/pkgs/applications/networking/irc/wraith/default.nix +++ /dev/null @@ -1,46 +0,0 @@ -{ lib, stdenv, fetchurl, openssl }: - -stdenv.mkDerivation rec { - pname = "wraith"; - version = "1.4.10"; - src = fetchurl { - url = "mirror://sourceforge/wraithbotpack/wraith-v${version}.tar.gz"; - sha256 = "1h8159g6wh1hi69cnhqkgwwwa95fa6z1zrzjl219mynbf6vjjzkw"; - }; - hardeningDisable = [ "format" ]; - buildInputs = [ openssl ]; - patches = [ ./configure.patch ./dlopen.patch ]; - postPatch = '' - substituteInPlace configure --subst-var-by openssl.dev ${openssl.dev} \ - --subst-var-by openssl-lib ${lib.getLib openssl} - substituteInPlace src/libssl.cc --subst-var-by openssl ${lib.getLib openssl} - substituteInPlace src/libcrypto.cc --subst-var-by openssl ${lib.getLib openssl} - ''; - installPhase = '' - mkdir -p $out/bin - cp -a wraith $out/bin/wraith - ln -s wraith $out/bin/hub - ''; - - meta = with lib; { - broken = (stdenv.isLinux && stdenv.isAarch64); - description = "IRC channel management bot written purely in C/C++"; - longDescription = '' - Wraith is an IRC channel management bot written purely in C/C++. It has - been in development since late 2003. It is based on Eggdrop 1.6.12 but has - since evolved into something much different at its core. TCL and loadable - modules are currently not supported. - - Maintainer's Notes: - Copy the binary out of the store before running it with the -C option to - configure it. See https://github.com/wraith/wraith/wiki/GettingStarted . - - The binary will not run when moved onto non-NixOS systems; use patchelf - to fix its runtime dependenices. - ''; - homepage = "https://wraith.botpack.net/"; - license = licenses.gpl2Plus; - maintainers = with maintainers; [ elitak ]; - platforms = platforms.linux; - }; -} diff --git a/pkgs/applications/networking/irc/wraith/dlopen.patch b/pkgs/applications/networking/irc/wraith/dlopen.patch deleted file mode 100644 index 5bf11eb72692..000000000000 --- a/pkgs/applications/networking/irc/wraith/dlopen.patch +++ /dev/null @@ -1,48 +0,0 @@ -diff --git a/src/libcrypto.cc b/src/libcrypto.cc -index 5139f66..517103f 100644 ---- a/src/libcrypto.cc -+++ b/src/libcrypto.cc -@@ -100,17 +100,9 @@ int load_libcrypto() { - } - - sdprintf("Loading libcrypto"); -+ dlerror(); // Clear Errors -+ libcrypto_handle = dlopen("@openssl@/lib/libcrypto.so", RTLD_LAZY|RTLD_GLOBAL); - -- bd::Array<bd::String> libs_list(bd::String("libcrypto.so." SHLIB_VERSION_NUMBER " libcrypto.so libcrypto.so.1.1 libcrypto.so.1.0.0 libcrypto.so.0.9.8 libcrypto.so.10 libcrypto.so.9 libcrypto.so.8 libcrypto.so.7 libcrypto.so.6").split(' ')); -- -- for (size_t i = 0; i < libs_list.length(); ++i) { -- dlerror(); // Clear Errors -- libcrypto_handle = dlopen(bd::String(libs_list[i]).c_str(), RTLD_LAZY|RTLD_GLOBAL); -- if (libcrypto_handle) { -- sdprintf("Found libcrypto: %s", bd::String(libs_list[i]).c_str()); -- break; -- } -- } - if (!libcrypto_handle) { - fprintf(stderr, STR("Unable to find libcrypto\n")); - return(1); -diff --git a/src/libssl.cc b/src/libssl.cc -index 6010abc..86e29fc 100644 ---- a/src/libssl.cc -+++ b/src/libssl.cc -@@ -78,17 +78,9 @@ int load_libssl() { - } - - sdprintf("Loading libssl"); -+ dlerror(); // Clear Errors -+ libssl_handle = dlopen("@openssl@/lib/libssl.so", RTLD_LAZY); - -- bd::Array<bd::String> libs_list(bd::String("libssl.so." SHLIB_VERSION_NUMBER " libssl.so libssl.so.1.1 libssl.so.1.0.0 libssl.so.0.9.8 libssl.so.10 libssl.so.9 libssl.so.8 libssl.so.7 libssl.so.6").split(' ')); -- -- for (size_t i = 0; i < libs_list.length(); ++i) { -- dlerror(); // Clear Errors -- libssl_handle = dlopen(bd::String(libs_list[i]).c_str(), RTLD_LAZY); -- if (libssl_handle) { -- sdprintf("Found libssl: %s", bd::String(libs_list[i]).c_str()); -- break; -- } -- } - if (!libssl_handle) { - fprintf(stderr, STR("Unable to find libssl\n")); - return(1); |