18 , gsettings-desktop-schemas
42 stdenv.mkDerivation rec {
43 pname = "polar-bookshelf1";
47 url = "https://github.com/burtonator/polar-bookshelf/releases/download/v${version}/polar-bookshelf-${version}-amd64.deb";
48 hash = "sha256-5xa+Nwu0p1x5DLn1GNI0HDt7GtBGoFQ/9qGTeq9uBgU=";
62 gsettings-desktop-schemas
88 runtimeLibs = lib.makeLibraryPath [ libudev0-shim glibc curl openssl libnghttp2 ];
91 mkdir -p $out/share/polar-bookshelf $out/bin $out/lib
92 mv opt/Polar\ Bookshelf/* $out/share/polar-bookshelf
93 mv $out/share/polar-bookshelf/*.so $out/lib
94 mv usr/share/* $out/share/
95 ln -s $out/share/polar-bookshelf/polar-bookshelf $out/bin/polar-bookshelf
99 gappsWrapperArgs+=(--prefix LD_LIBRARY_PATH : "${runtimeLibs}" )
100 # Correct desktop file `Exec`
101 substituteInPlace $out/share/applications/polar-bookshelf.desktop \
102 --replace "/opt/Polar Bookshelf/polar-bookshelf" "$out/bin/polar-bookshelf"
106 homepage = "https://getpolarized.io/";
107 description = "Personal knowledge repository for PDF and web content supporting incremental reading and document annotation";
108 mainProgram = "polar-bookshelf";
109 license = lib.licenses.gpl3Only;
110 maintainers = [ lib.maintainers.dansbandit ];
111 platforms = lib.platforms.linux;
112 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];