From 41e370ecfbb0edec763458212a59cbf30a9dde23 Mon Sep 17 00:00:00 2001 From: patka Date: Wed, 7 May 2025 21:29:43 +0200 Subject: [PATCH] lumail: drop Upstream is gone and has turned into some AI slop news page around 2021. There seems to be a legit github upstream that looks like it belonged to lumail and that was archived in 2020. It is very dead --- .../networking/mailreaders/lumail/default.nix | 109 ------------------ pkgs/top-level/aliases.nix | 1 + pkgs/top-level/all-packages.nix | 4 - 3 files changed, 1 insertion(+), 113 deletions(-) delete mode 100644 pkgs/applications/networking/mailreaders/lumail/default.nix diff --git a/pkgs/applications/networking/mailreaders/lumail/default.nix b/pkgs/applications/networking/mailreaders/lumail/default.nix deleted file mode 100644 index 6bdd54302517..000000000000 --- a/pkgs/applications/networking/mailreaders/lumail/default.nix +++ /dev/null @@ -1,109 +0,0 @@ -{ - lib, - stdenv, - fetchurl, - pkg-config, - lua, - file, - ncurses, - gmime, - pcre-cpp, - perl, - perlPackages, - makeWrapper, - debugBuild ? false, - alternativeGlobalConfigFilePath ? null, -}: - -let - version = "3.1"; - binaryName = if debugBuild then "lumail2-debug" else "lumail2"; - alternativeConfig = builtins.toFile "lumail2.lua" ( - builtins.readFile alternativeGlobalConfigFilePath - ); - - globalConfig = - if alternativeGlobalConfigFilePath == null then - '' - mkdir -p $out/etc/lumail2 - cp global.config.lua $out/etc/lumail2.lua - for n in ./lib/*.lua; do - cp "$n" $out/etc/lumail2/ - done - '' - else - '' - ln -s ${alternativeConfig} $out/etc/lumail2.lua - ''; - - getPath = type: "${lua}/lib/?.${type};"; - luaPath = getPath "lua"; - luaCPath = getPath "so"; -in -stdenv.mkDerivation { - pname = "lumail"; - inherit version; - - src = fetchurl { - url = "https://lumail.org/download/lumail-${version}.tar.gz"; - sha256 = "0vj7p7f02m3w8wb74ilajcwznc4ai4h2ikkz9ildy0c00aqsi5w4"; - }; - - enableParallelBuilding = true; - - nativeBuildInputs = [ - pkg-config - makeWrapper - ]; - buildInputs = [ - lua - file - ncurses - gmime - pcre-cpp - perl - perlPackages.JSON - perlPackages.NetIMAPClient - ]; - - preConfigure = '' - sed -e 's|"/etc/lumail2|LUMAIL_LUAPATH"/..|' -i src/lumail2.cc src/imap_proxy.cc - - perlFlags= - for i in $(IFS=:; echo $PERL5LIB); do - perlFlags="$perlFlags -I$i" - done - - sed -e "s|^#\!\(.*/perl.*\)$|#\!\1$perlFlags|" -i perl.d/imap-proxy - ''; - - buildFlags = lib.optional debugBuild "lumail2-debug"; - - installPhase = - '' - mkdir -p $out/bin || true - install -m755 ${binaryName} $out/bin/ - '' - + globalConfig - + '' - wrapProgram $out/bin/${binaryName} \ - --prefix LUA_PATH : "${luaPath}" \ - --prefix LUA_CPATH : "${luaCPath}" - ''; - - makeFlags = [ - "LVER=lua" - "PREFIX=$(out)" - "SYSCONFDIR=$(out)/etc" - "LUMAIL_LIBS=$(out)/etc/lumail2" - ]; - - meta = with lib; { - description = "Console-based email client"; - mainProgram = "lumail2"; - homepage = "https://lumail.org/"; - license = licenses.gpl2; - platforms = platforms.linux; - maintainers = with maintainers; [ orivej ]; - }; -} diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index ca3b4c3a7efe..f9a56e36d246 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -1106,6 +1106,7 @@ mapAliases { loop = throw "'loop' has been removed due to lack of upstream maintenance"; # Added 2025-01-25 luna-icons = throw "luna-icons has been removed as it was removed upstream"; # Added 2024-10-29 lucene = throw "lucene has been removed since it was both wildly out of date and was not even built properly for 4 years"; # Added 2025-04-10 + lumail = throw "'lumail' has been removed since its upstream is unavailable"; # Added 2025-05-07 lv_img_conv = throw "'lv_img_conv' has been removed from nixpkgs as it is broken"; # Added 2024-06-18 lxd = lib.warnOnInstantiate "lxd has been renamed to lxd-lts" lxd-lts; # Added 2024-04-01 lxd-unwrapped = lib.warnOnInstantiate "lxd-unwrapped has been renamed to lxd-unwrapped-lts" lxd-unwrapped-lts; # Added 2024-04-01 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bd8561acc5ee..6b03259735be 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13287,10 +13287,6 @@ with pkgs; luddite = with python3Packages; toPythonApplication luddite; - lumail = callPackage ../applications/networking/mailreaders/lumail { - lua = lua5_1; - }; - lutris-unwrapped = python3.pkgs.callPackage ../applications/misc/lutris { }; lutris = callPackage ../applications/misc/lutris/fhsenv.nix { }; lutris-free = lutris.override {