From fec611939ddb617ee90f0dd87a8e57d93e3c53b9 Mon Sep 17 00:00:00 2001 From: Tom Hunze Date: Tue, 1 Sep 2026 23:08:47 +0200 Subject: [PATCH 1/2] polar-bookshelf: drop This package has seen no upstream changes since January 2021 [1] and vendors Electron version 11, which has been EOL since August 2021 [2] and ships with the ancient Chromium version 87 [3]. [1] https://sourceforge.net/projects/polar-bookshelf.mirror/files/ [2] https://endoflife.date/electron [3] https://www.electronjs.org/blog/electron-11-0 --- pkgs/by-name/po/polar-bookshelf/package.nix | 136 -------------------- pkgs/top-level/aliases.nix | 1 + 2 files changed, 1 insertion(+), 136 deletions(-) delete mode 100644 pkgs/by-name/po/polar-bookshelf/package.nix diff --git a/pkgs/by-name/po/polar-bookshelf/package.nix b/pkgs/by-name/po/polar-bookshelf/package.nix deleted file mode 100644 index b99b453e099c..000000000000 --- a/pkgs/by-name/po/polar-bookshelf/package.nix +++ /dev/null @@ -1,136 +0,0 @@ -{ - stdenv, - lib, - makeWrapper, - fetchurl, - dpkg, - wrapGAppsHook3, - autoPatchelfHook, - gtk3, - cairo, - pango, - atk, - gdk-pixbuf, - glib, - at-spi2-atk, - dbus, - libx11, - libxcb, - libxi, - libxcursor, - libxdamage, - libxrandr, - libxcomposite, - libxext, - libxfixes, - libxrender, - libxtst, - libxscrnsaver, - nss, - nspr, - alsa-lib, - cups, - fontconfig, - expat, - libudev0-shim, - glibc, - curl, - openssl, - libnghttp2, - gsettings-desktop-schemas, - libdrm, - libgbm, -}: - -stdenv.mkDerivation (finalAttrs: { - pname = "polar-bookshelf"; - version = "2.0.103"; - - # fetching a .deb because there's no easy way to package this Electron app - src = fetchurl { - url = "mirror://sourceforge/polar-bookshelf.mirror/v${finalAttrs.version}/polar-desktop-app-${finalAttrs.version}-amd64.deb"; - hash = "sha256-jcq0hW698bAhVM3fLQQeKAnld33XLkHsGjS3QwUpciQ="; - }; - - buildInputs = [ - libdrm - libgbm - gsettings-desktop-schemas - glib - gtk3 - cairo - pango - atk - gdk-pixbuf - at-spi2-atk - dbus - libx11 - libxcb - libxi - libxcursor - libxdamage - libxrandr - libxcomposite - libxext - libxfixes - libxrender - libxtst - libxscrnsaver - nss - nspr - alsa-lib - cups - fontconfig - expat - ]; - - nativeBuildInputs = [ - wrapGAppsHook3 - autoPatchelfHook - makeWrapper - dpkg - ]; - - runtimeLibs = lib.makeLibraryPath [ - libudev0-shim - glibc - curl - openssl - libnghttp2 - ]; - - installPhase = '' - runHook preInstall - - mkdir -p $out/share/polar-bookshelf - mkdir -p $out/bin - mkdir -p $out/lib - - mv opt/Polar/* $out/share/polar-bookshelf - mv $out/share/polar-bookshelf/*.so $out/lib - - mv usr/share/* $out/share/ - - ln -s $out/share/polar-bookshelf/polar-desktop-app $out/bin/polar-desktop-app - - substituteInPlace $out/share/applications/polar-desktop-app.desktop \ - --replace "/opt/Polar/polar-desktop-app" "$out/bin/polar-desktop-app" - - runHook postInstall - ''; - - preFixup = '' - gappsWrapperArgs+=(--prefix LD_LIBRARY_PATH : "${finalAttrs.runtimeLibs}" ) - ''; - - meta = { - homepage = "https://getpolarized.io/"; - description = "Personal knowledge repository for PDF and web content supporting incremental reading and document annotation"; - mainProgram = "polar-desktop-app"; - sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; - license = lib.licenses.gpl3Only; - platforms = lib.platforms.linux; - maintainers = [ ]; - }; - -}) diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index f45807ca51d3..04f6acb92b28 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -2031,6 +2031,7 @@ mapAliases { podofo_0_9 = throw "'podofo_0_9' has been deprecated, it may be replaced by 'podofo0'"; # Added 2026-05-08 podofo_0_10 = warnAlias "'podofo_0_10' has been renamed to 'podofo0'" podofo0; # Added 2026-05-08 podofo_1_0 = throw "'podofo_1_0' has been deprecated in favour of 'podofo'"; # Added 2026-05-08 + polar-bookshelf = throw "'polar-bookshelf' has been removed as it was unmaintained upstream and vendoring an EOL version of Electron"; # Added 2026-09-01 polipo = throw "'polipo' has been removed as it is unmaintained upstream"; # Added 2025-05-18 polyml56 = throw "'polyml56' has been deprecated in favor of polyml"; # Added 2026-06-01 polyml57 = throw "'polyml57' has been deprecated in favor of polyml"; # Added 2026-06-01 From 1784bc983a42e0dc3651077ee94577d81fbac1bb Mon Sep 17 00:00:00 2001 From: Tom Hunze Date: Tue, 1 Sep 2026 23:11:03 +0200 Subject: [PATCH 2/2] polar-bookshelf1: drop This package has seen no upstream changes since March 2020 [1] and vendors Electron version 7, which has been EOL since August 2020 [2] and ships with the ancient Chromium version 78 [3]. [1] https://sourceforge.net/projects/polar-bookshelf.mirror/files/ [2] https://endoflife.date/electron [3] https://www.electronjs.org/blog/electron-7-0 --- pkgs/by-name/po/polar-bookshelf1/package.nix | 121 ------------------- pkgs/top-level/aliases.nix | 1 + 2 files changed, 1 insertion(+), 121 deletions(-) delete mode 100644 pkgs/by-name/po/polar-bookshelf1/package.nix diff --git a/pkgs/by-name/po/polar-bookshelf1/package.nix b/pkgs/by-name/po/polar-bookshelf1/package.nix deleted file mode 100644 index e67812e0de2b..000000000000 --- a/pkgs/by-name/po/polar-bookshelf1/package.nix +++ /dev/null @@ -1,121 +0,0 @@ -{ - lib, - stdenv, - fetchurl, - alsa-lib, - at-spi2-atk, - atk, - autoPatchelfHook, - cairo, - cups, - curl, - dbus, - dpkg, - expat, - fontconfig, - gdk-pixbuf, - glib, - glibc, - gsettings-desktop-schemas, - gtk3, - libx11, - libxscrnsaver, - libxcomposite, - libxcursor, - libxdamage, - libxext, - libxfixes, - libxi, - libxrandr, - libxrender, - libxtst, - libnghttp2, - libudev0-shim, - libxcb, - makeWrapper, - nspr, - nss, - openssl, - pango, - wrapGAppsHook3, -}: - -stdenv.mkDerivation (finalAttrs: { - pname = "polar-bookshelf1"; - version = "1.100.13"; - - src = fetchurl { - url = "mirror://sourceforge/polar-bookshelf.mirror/v${finalAttrs.version}/polar-bookshelf-${finalAttrs.version}-amd64.deb"; - hash = "sha256-TeegAq3x8LZ01KEPIlP4lTGC0a9ilnf1xX/Dqci1wEQ="; - }; - - buildInputs = [ - alsa-lib - at-spi2-atk - atk - cairo - cups - dbus - expat - fontconfig - gdk-pixbuf - glib - gsettings-desktop-schemas - gtk3 - libx11 - libxscrnsaver - libxcomposite - libxcursor - libxdamage - libxext - libxfixes - libxi - libxrandr - libxrender - libxtst - libxcb - nspr - nss - pango - ]; - - nativeBuildInputs = [ - autoPatchelfHook - dpkg - makeWrapper - wrapGAppsHook3 - ]; - - runtimeLibs = lib.makeLibraryPath [ - libudev0-shim - glibc - curl - openssl - libnghttp2 - ]; - - installPhase = '' - mkdir -p $out/share/polar-bookshelf $out/bin $out/lib - mv opt/Polar\ Bookshelf/* $out/share/polar-bookshelf - mv $out/share/polar-bookshelf/*.so $out/lib - mv usr/share/* $out/share/ - ln -s $out/share/polar-bookshelf/polar-bookshelf $out/bin/polar-bookshelf - ''; - - preFixup = '' - gappsWrapperArgs+=(--prefix LD_LIBRARY_PATH : "${finalAttrs.runtimeLibs}" ) - # Correct desktop file `Exec` - substituteInPlace $out/share/applications/polar-bookshelf.desktop \ - --replace "/opt/Polar Bookshelf/polar-bookshelf" "$out/bin/polar-bookshelf" - ''; - - meta = { - homepage = "https://getpolarized.io/"; - description = "Personal knowledge repository for PDF and web content supporting incremental reading and document annotation"; - mainProgram = "polar-bookshelf"; - license = lib.licenses.gpl3Only; - maintainers = [ lib.maintainers.dansbandit ]; - platforms = lib.platforms.linux; - sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; - }; -}) diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 04f6acb92b28..bdeaa6d5d848 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -2031,6 +2031,7 @@ mapAliases { podofo_0_9 = throw "'podofo_0_9' has been deprecated, it may be replaced by 'podofo0'"; # Added 2026-05-08 podofo_0_10 = warnAlias "'podofo_0_10' has been renamed to 'podofo0'" podofo0; # Added 2026-05-08 podofo_1_0 = throw "'podofo_1_0' has been deprecated in favour of 'podofo'"; # Added 2026-05-08 + polar-bookshelf1 = throw "'polar-bookshelf1' has been removed as it was unmaintained upstream and vendoring an EOL version of Electron"; # Added 2026-09-01 polar-bookshelf = throw "'polar-bookshelf' has been removed as it was unmaintained upstream and vendoring an EOL version of Electron"; # Added 2026-09-01 polipo = throw "'polipo' has been removed as it is unmaintained upstream"; # Added 2025-05-18 polyml56 = throw "'polyml56' has been deprecated in favor of polyml"; # Added 2026-06-01