git.iko.soy/typeable/nixpkgs
on master help sign in
zotero: 5.0.89 -> 5.0.95 (#113964)
commit148eff94b383b5b0bd247e32d03a7d224e142598 authorImran Hossain <hi@imranh.xyz> dateMon 22 Feb 2021, 13:09 (6 years ago) parent22d5de6
1 file changed+33−29
pkgs/applications/office/zotero/default.nix+33−29
pkgs/applications/office/zotero/default.nix+33−29
@@ -36,11 +36,11 @@
3636
3737stdenv.mkDerivation rec {
3838 pname = "zotero";
39− version = "5.0.89";
39+ version = "5.0.95";
4040
4141 src = fetchurl {
4242 url = "https://download.zotero.org/client/release/${version}/Zotero-${version}_linux-x86_64.tar.bz2";
43− sha256 = "18p4qnnfx9f2frk7f2nk1d7jr4cjzg9z7lfzrk7vq11qgbjdpqbl";
43+ sha256 = "16rahl14clgnl7gzpw7rxx23yxbw1nbrz219q051zkjkkw5ai8lv";
4444 };
4545
4646 nativeBuildInputs = [ wrapGAppsHook ];
@@ -86,7 +86,7 @@ stdenv.mkDerivation rec {
8686 stdenv.cc.cc
8787 ];
8888
89− patchPhase = ''
89+ postPatch = ''
9090 sed -i '/pref("app.update.enabled", true);/c\pref("app.update.enabled", false);' defaults/preferences/prefs.js
9191 '';
9292
@@ -103,33 +103,36 @@ stdenv.mkDerivation rec {
103103 mimeType = "text/plain";
104104 };
105105
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
112108
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/"
120113
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
133136 '';
134137
135138 preFixup = ''
@@ -141,7 +144,8 @@ stdenv.mkDerivation rec {
141144 meta = with lib; {
142145 homepage = "https://www.zotero.org";
143146 description = "Collect, organize, cite, and share your research sources";
144− license = licenses.agpl3;
147+ license = licenses.agpl3Only;
145148 platforms = platforms.linux;
149+ maintainers = with maintainers; [ i077 ];
146150 };
147151}