Unverified Commit 3a4e23f7 authored by dish's avatar dish Committed by GitHub
Browse files

pidginPackages: drop broken packages (#443669)

parents a3c1a7ff 9f1c1d70
Loading
Loading
Loading
Loading
+5 −11
Original line number Diff line number Diff line
@@ -26,10 +26,6 @@ lib.makeScope newScope (
      texLive = texliveBasic;
    };

    pidgin-msn-pecan = callPackage ./msn-pecan { };

    pidgin-mra = callPackage ./pidgin-mra { };

    pidgin-carbons = callPackage ./carbons { };

    pidgin-xmpp-receipts = callPackage ./pidgin-xmpp-receipts { };
@@ -54,20 +50,18 @@ lib.makeScope newScope (

    purple-slack = callPackage ./purple-slack { };

    purple-vk-plugin = callPackage ./purple-vk-plugin { };

    purple-xmpp-http-upload = callPackage ./purple-xmpp-http-upload { };

    tdlib-purple = callPackage ./tdlib-purple { };

    pidgin-opensteamworks = callPackage ./pidgin-opensteamworks { };

    purple-facebook = callPackage ./purple-facebook { };

  }
  // lib.optionalAttrs config.allowAliases {
    purple-matrix = throw "'pidginPackages.purple-matrix' has been unmaintained since April 2022, so it was removed.";
    pidgin-skypeweb = throw "'pidginPackages.pidgin-skypeweb' has been removed since Skype was shut down in May 2025.";
    purple-hangouts = throw "'pidginPackages.purple-hangouts' has been removed as Hangouts Classic is obsolete and migrated to Google Chat.";
    pidgin-msn-pecan = throw "'pidginPackages.pidgin-msn-pecan' has been removed as it's unmaintained upstream and doesn't work with escargot";
    pidgin-mra = throw "'pidginPackages.pidgin-mra' has been removed since mail.ru agent service has stopped functioning in 2024.";
    purple-facebook = throw "'pidginPackages.purple-facebook' has been removed as it is unmaintained and doesn't support e2ee enforced by facebook.";
    pidgin-opensteamworks = throw "'pidginPackages.pidgin-opensteamworks' has been removed as it is unmaintained and no longer works with Steam.";
    purple-vk-plugin = throw "'pidginPackages.purple-vk-plugin' has been removed as upstream repository was deleted and no active forks are found.";
  }
)
+0 −30
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchFromGitHub,
  pidgin,
}:

stdenv.mkDerivation rec {
  pname = "pidgin-msn-pecan";
  version = "0.1.4";
  src = fetchFromGitHub {
    owner = "felipec";
    repo = "msn-pecan";
    rev = "v${version}";
    sha256 = "0133rpiy4ik6rx9qn8m38vp7w505hnycggr53g3a2hfpk5xj03zh";
  };

  meta = {
    description = "Alternative MSN protocol plug-in for Pidgin IM";
    homepage = "https://github.com/felipec/msn-pecan";
    platforms = lib.platforms.linux;
  };

  makeFlags = [
    "PURPLE_LIBDIR=${placeholder "out"}/lib"
    "PURPLE_DATADIR=${placeholder "out"}/share/data"
  ];

  buildInputs = [ pidgin ];
}
+0 −39
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchFromGitHub,
  pkg-config,
  pidgin,
}:

stdenv.mkDerivation {
  pname = "pidgin-mra";
  version = "unstable-2014-07-08";

  src = fetchFromGitHub {
    owner = "dreadatour";
    repo = "pidgin-mra";
    rev = "54b299266265cde800289b2d51f13b81f6bf379c";
    sha256 = "sha256-fKdEOaijW2LfsH8RHlVGbMpL7Zhu+x2vW4fPEN4puKk=";
  };

  nativeBuildInputs = [ pkg-config ];
  buildInputs = [ pidgin ];

  postPatch = ''
    sed -i 's|-I/usr/include/libpurple|$(shell pkg-config --cflags purple)|' Makefile
  '';

  makeFlags = [
    "DESTDIR=/"
    "LIBDIR=${placeholder "out"}/lib"
    "DATADIR=${placeholder "out"}/share"
  ];

  meta = {
    homepage = "https://github.com/dreadatour/pidgin-mra";
    description = "Mail.ru Agent plugin for Pidgin / libpurple";
    license = lib.licenses.gpl2;
    platforms = lib.platforms.linux;
  };
}
+0 −51
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchFromGitHub,
  pkg-config,
  pidgin,
  glib,
  json-glib,
  nss,
  nspr,
  libsecret,
}:

stdenv.mkDerivation rec {
  pname = "pidgin-opensteamworks";
  version = "1.7.2";

  src = fetchFromGitHub {
    owner = "EionRobb";
    repo = "pidgin-opensteamworks";
    rev = version;
    sha256 = "sha256-VWsoyFG+Ro+Y6ngSTMQ7yBYf6awCMNOc6U0WqNeg/jU=";
  };

  sourceRoot = "${src.name}/steam-mobile";

  installFlags = [
    "PLUGIN_DIR_PURPLE=${placeholder "out"}/lib/purple-2"
    "DATA_ROOT_DIR_PURPLE=${placeholder "out"}/share"
  ];

  nativeBuildInputs = [
    pkg-config
  ];
  buildInputs = [
    pidgin
    glib
    json-glib
    nss
    nspr
    libsecret
  ];

  meta = with lib; {
    homepage = "https://github.com/EionRobb/pidgin-opensteamworks";
    description = "Plugin for Pidgin 2.x which implements Steam Friends/Steam IM compatibility";
    license = licenses.gpl3;
    platforms = platforms.linux;
    maintainers = with maintainers; [ arobyn ];
  };
}
+0 −79
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchFromGitHub,
  fetchhg,
  pidgin,
  glib,
  json-glib,
  autoreconfHook,
}:

let
  pidginHg = fetchhg {
    url = "https://bitbucket.org/pidgin/main";
    # take from VERSION file
    rev = "9ff9acf9fa14";
    sha256 = "06imlhsps4wrjgjb92zpaxprxfxl2pjb2x9pl859c8cryssrz2jv";
  };

in
stdenv.mkDerivation rec {
  pname = "purple-facebook";
  version = "0.9.5";

  src = fetchFromGitHub {
    owner = "dequis";
    repo = "purple-facebook";
    rev = "v${version}-9ff9acf9fa14";
    sha256 = "0a1860bkzrmyxahm9rlxi80z335w491wzdaqaw6j9ccavbymhwhs";
  };

  postPatch = ''
    # we do all patching from update.sh in preAutoreconf
    echo "#!${stdenv.shell}" > update.sh
  '';

  preAutoreconf = ''
    for FILE in $(cat MANIFEST_PIDGIN); do
        install -Dm644 "${pidginHg}/$FILE" "pidgin/$FILE" || true
    done

    touch $(cat MANIFEST_VOIDS)

    patchdir="$(pwd)/patches"
    pushd pidgin

    for patch in $(ls -1 "$patchdir"); do
      patch -p1 -i "$patchdir/$patch"
    done
    popd

    ./autogen.sh
  '';

  makeFlags = [
    "PLUGIN_DIR_PURPLE=/lib/pidgin/"
    "DATA_ROOT_DIR_PURPLE=/share"
  ];

  installPhase = ''
    mkdir -p $out/lib/purple-2
    cp pidgin/libpurple/protocols/facebook/.libs/*.so $out/lib/purple-2/
  '';

  nativeBuildInputs = [ autoreconfHook ];
  buildInputs = [
    pidgin
    glib
    json-glib
  ];

  meta = with lib; {
    inherit (src.meta) homepage;
    description = "Facebook protocol plugin for libpurple";
    license = licenses.gpl2;
    platforms = platforms.linux;
    maintainers = with maintainers; [ davorb ];
  };
}
Loading