polar-bookshelf{,1}: drop (#558916)

This commit is contained in:
h7x4
2026-09-02 10:37:16 +00:00
committed by GitHub
3 changed files with 2 additions and 257 deletions

View File

@@ -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 = [ ];
};
})

View File

@@ -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 ];
};
})

View File

@@ -2031,6 +2031,8 @@ 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
polyml57 = throw "'polyml57' has been deprecated in favor of polyml"; # Added 2026-06-01