zotero: 5.0.89 -> 5.0.95 (#113964)

authored by Imran Hossain and committed by GitHub 148eff94 22d5de6a

+33 -29
+33 -29
pkgs/applications/office/zotero/default.nix
··· 36 36 37 37 stdenv.mkDerivation rec { 38 38 pname = "zotero"; 39 - version = "5.0.89"; 39 + version = "5.0.95"; 40 40 41 41 src = fetchurl { 42 42 url = "https://download.zotero.org/client/release/${version}/Zotero-${version}_linux-x86_64.tar.bz2"; 43 - sha256 = "18p4qnnfx9f2frk7f2nk1d7jr4cjzg9z7lfzrk7vq11qgbjdpqbl"; 43 + sha256 = "16rahl14clgnl7gzpw7rxx23yxbw1nbrz219q051zkjkkw5ai8lv"; 44 44 }; 45 45 46 46 nativeBuildInputs = [ wrapGAppsHook ]; ··· 86 86 stdenv.cc.cc 87 87 ]; 88 88 89 - patchPhase = '' 89 + postPatch = '' 90 90 sed -i '/pref("app.update.enabled", true);/c\pref("app.update.enabled", false);' defaults/preferences/prefs.js 91 91 ''; 92 92 ··· 103 103 mimeType = "text/plain"; 104 104 }; 105 105 106 - installPhase = 107 - '' 108 - mkdir -p "$prefix/usr/lib/zotero-bin-${version}" 109 - cp -r * "$prefix/usr/lib/zotero-bin-${version}" 110 - mkdir -p "$out/bin" 111 - ln -s "$prefix/usr/lib/zotero-bin-${version}/zotero" "$out/bin/" 106 + installPhase = '' 107 + runHook preInstall 112 108 113 - # install desktop file and icons. 114 - mkdir -p $out/share/applications 115 - cp ${desktopItem}/share/applications/* $out/share/applications/ 116 - for size in 16 32 48 256; do 117 - install -Dm444 chrome/icons/default/default$size.png \ 118 - $out/share/icons/hicolor/''${size}x''${size}/apps/zotero.png 119 - done 109 + mkdir -p "$prefix/usr/lib/zotero-bin-${version}" 110 + cp -r * "$prefix/usr/lib/zotero-bin-${version}" 111 + mkdir -p "$out/bin" 112 + ln -s "$prefix/usr/lib/zotero-bin-${version}/zotero" "$out/bin/" 120 113 121 - for executable in \ 122 - zotero-bin plugin-container \ 123 - updater minidump-analyzer 124 - do 125 - if [ -e "$out/usr/lib/zotero-bin-${version}/$executable" ]; then 126 - patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 127 - "$out/usr/lib/zotero-bin-${version}/$executable" 128 - fi 129 - done 130 - find . -executable -type f -exec \ 131 - patchelf --set-rpath "$libPath" \ 132 - "$out/usr/lib/zotero-bin-${version}/{}" \; 114 + # install desktop file and icons. 115 + mkdir -p $out/share/applications 116 + cp ${desktopItem}/share/applications/* $out/share/applications/ 117 + for size in 16 32 48 256; do 118 + install -Dm444 chrome/icons/default/default$size.png \ 119 + $out/share/icons/hicolor/''${size}x''${size}/apps/zotero.png 120 + done 121 + 122 + for executable in \ 123 + zotero-bin plugin-container \ 124 + updater minidump-analyzer 125 + do 126 + if [ -e "$out/usr/lib/zotero-bin-${version}/$executable" ]; then 127 + patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 128 + "$out/usr/lib/zotero-bin-${version}/$executable" 129 + fi 130 + done 131 + find . -executable -type f -exec \ 132 + patchelf --set-rpath "$libPath" \ 133 + "$out/usr/lib/zotero-bin-${version}/{}" \; 134 + 135 + runHook postInstall 133 136 ''; 134 137 135 138 preFixup = '' ··· 141 144 meta = with lib; { 142 145 homepage = "https://www.zotero.org"; 143 146 description = "Collect, organize, cite, and share your research sources"; 144 - license = licenses.agpl3; 147 + license = licenses.agpl3Only; 145 148 platforms = platforms.linux; 149 + maintainers = with maintainers; [ i077 ]; 146 150 }; 147 151 }