polar-bookshelf1: init at 1.100.14

authored by

dansbandit and committed by
Anderson Torres
bb4cec38 d42cca51

+119
+117
pkgs/applications/misc/polar-bookshelf1/default.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchurl 4 + , alsa-lib 5 + , at-spi2-atk 6 + , atk 7 + , autoPatchelfHook 8 + , cairo 9 + , cups 10 + , curl 11 + , dbus 12 + , dpkg 13 + , expat 14 + , fontconfig 15 + , gdk-pixbuf 16 + , glib 17 + , glibc 18 + , gsettings-desktop-schemas 19 + , gtk3 20 + , libX11 21 + , libXScrnSaver 22 + , libXcomposite 23 + , libXcursor 24 + , libXdamage 25 + , libXext 26 + , libXfixes 27 + , libXi 28 + , libXrandr 29 + , libXrender 30 + , libXtst 31 + , libnghttp2 32 + , libudev0-shim 33 + , libxcb 34 + , makeWrapper 35 + , nspr 36 + , nss 37 + , openssl 38 + , pango 39 + , wrapGAppsHook 40 + }: 41 + 42 + stdenv.mkDerivation rec { 43 + pname = "polar-bookshelf1"; 44 + version = "1.100.14"; 45 + 46 + src = fetchurl { 47 + url = "https://github.com/burtonator/polar-bookshelf/releases/download/v${version}/polar-bookshelf-${version}-amd64.deb"; 48 + hash = "sha256-5xa+Nwu0p1x5DLn1GNI0HDt7GtBGoFQ/9qGTeq9uBgU="; 49 + }; 50 + 51 + buildInputs = [ 52 + alsa-lib 53 + at-spi2-atk 54 + atk 55 + cairo 56 + cups 57 + dbus 58 + expat 59 + fontconfig 60 + gdk-pixbuf 61 + glib 62 + gsettings-desktop-schemas 63 + gtk3 64 + libX11 65 + libXScrnSaver 66 + libXcomposite 67 + libXcursor 68 + libXdamage 69 + libXext 70 + libXfixes 71 + libXi 72 + libXrandr 73 + libXrender 74 + libXtst 75 + libxcb 76 + nspr 77 + nss 78 + pango 79 + ]; 80 + 81 + nativeBuildInputs = [ 82 + autoPatchelfHook 83 + dpkg 84 + makeWrapper 85 + wrapGAppsHook 86 + ]; 87 + 88 + runtimeLibs = lib.makeLibraryPath [ libudev0-shim glibc curl openssl libnghttp2 ]; 89 + 90 + unpackPhase = '' 91 + dpkg-deb -x $src . 92 + ''; 93 + 94 + installPhase = '' 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 100 + ''; 101 + 102 + preFixup = '' 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" 107 + ''; 108 + 109 + meta = { 110 + homepage = "https://getpolarized.io/"; 111 + description = "Personal knowledge repository for PDF and web content supporting incremental reading and document annotation"; 112 + license = lib.licenses.gpl3Only; 113 + maintainers = [ lib.maintainers.dansbandit ]; 114 + platforms = lib.platforms.linux; 115 + sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; 116 + }; 117 + }
+2
pkgs/top-level/all-packages.nix
··· 32968 32968 32969 32969 polar-bookshelf = callPackage ../applications/misc/polar-bookshelf { }; 32970 32970 32971 + polar-bookshelf1 = callPackage ../applications/misc/polar-bookshelf1 { }; 32972 + 32971 32973 poezio = python3Packages.poezio; 32972 32974 32973 32975 pommed_light = callPackage ../os-specific/linux/pommed-light { };