From 9ae573e510aa50c41e08314cd15c87485648fa1c Mon Sep 17 00:00:00 2001 From: Steamwalker Date: Sun, 2 Jan 2022 18:50:56 +0100 Subject: [PATCH] calibre: 5.33.2 -> 5.34.0 --- pkgs/applications/misc/calibre/default.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/misc/calibre/default.nix b/pkgs/applications/misc/calibre/default.nix index 3e1bdaec9d39..e50c2918ed92 100644 --- a/pkgs/applications/misc/calibre/default.nix +++ b/pkgs/applications/misc/calibre/default.nix @@ -27,20 +27,25 @@ mkDerivation rec { pname = "calibre"; - version = "5.33.2"; + version = "5.34.0"; src = fetchurl { url = "https://download.calibre-ebook.com/${version}/${pname}-${version}.tar.xz"; - sha256 = "sha256-wtt3ucCaFq9wLk79CeCz20tMM6AbLtZ4Ln6TxOx0dvI="; + hash = "sha256-1NQB7vrcU0hR308/8keUn/rHhdvJk5Ab0pOMPyiU1+M="; }; - # https://sources.debian.org/patches/calibre/5.33.2+dfsg-1 + # https://sources.debian.org/patches/calibre/${version}+dfsg-1 patches = [ # allow for plugin update check, but no calibre version check (fetchpatch { name = "0001-only-plugin-update.patch"; url = "https://raw.githubusercontent.com/debian-calibre/calibre/debian/${version}%2Bdfsg-1/debian/patches/0001-only-plugin-update.patch"; - sha256 = "sha256-dLzO1TWP7Q4nw2a3oN7qlhGCmcA0NKJrZidUnD6hUMA="; + sha256 = "sha256:1h2hl4z9qm17crms4d1lq2cq44cnxbga1dv6qckhxvcg6pawxg3l"; + }) + (fetchpatch { + name = "0007-Hardening-Qt-code.patch"; + url = "https://raw.githubusercontent.com/debian-calibre/calibre/debian/${version}%2Bdfsg-1/debian/patches/0007-Hardening-Qt-code.patch"; + sha256 = "sha256:18wps7fn0cpzb7gf78f15pmbaff4vlygc9g00hq7zynfa4pcgfdg"; }) ] ++ lib.optional (!unrarSupport) ./dont_build_unrar_plugin.patch;