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 ];
95 mkdir -p $out/share/polar-bookshelf $out/bin $out/lib
96 mv opt/Polar\ Bookshelf/* $out/share/polar-bookshelf
97 mv $out/share/polar-bookshelf/*.so $out/lib
98 mv usr/share/* $out/share/
99 ln -s $out/share/polar-bookshelf/polar-bookshelf $out/bin/polar-bookshelf
103 gappsWrapperArgs+=(--prefix LD_LIBRARY_PATH : "${runtimeLibs}" )
104 # Correct desktop file `Exec`
105 substituteInPlace $out/share/applications/polar-bookshelf.desktop \
106 --replace "/opt/Polar Bookshelf/polar-bookshelf" "$out/bin/polar-bookshelf"
110 homepage = "https://getpolarized.io/";
111 description = "Personal knowledge repository for PDF and web content supporting incremental reading and document annotation";
112 mainProgram = "polar-bookshelf";
113 license = lib.licenses.gpl3Only;
114 maintainers = [ lib.maintainers.dansbandit ];
115 platforms = lib.platforms.linux;
116 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];