From 7904ab42d861b316c7628e5367fb385b08ab021b Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Fri, 25 Mar 2022 20:31:12 +0100 Subject: [PATCH] =?UTF-8?q?pdf2djvu:=200.9.17.1=20=E2=86=92=200.9.18.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/jwilk/pdf2djvu/releases/tag/0.9.18 https://github.com/jwilk/pdf2djvu/releases/tag/0.9.18.1 https://github.com/jwilk/pdf2djvu/releases/tag/0.9.18.2 --- pkgs/tools/typesetting/pdf2djvu/default.nix | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/pkgs/tools/typesetting/pdf2djvu/default.nix b/pkgs/tools/typesetting/pdf2djvu/default.nix index 33f8481bc1a0..08730ef9ab1a 100644 --- a/pkgs/tools/typesetting/pdf2djvu/default.nix +++ b/pkgs/tools/typesetting/pdf2djvu/default.nix @@ -1,7 +1,6 @@ { stdenv , lib , fetchFromGitHub -, fetchpatch , autoreconfHook , gettext , libtool @@ -16,25 +15,16 @@ }: stdenv.mkDerivation rec { - version = "0.9.17.1"; + version = "0.9.18.2"; pname = "pdf2djvu"; src = fetchFromGitHub { owner = "jwilk"; repo = "pdf2djvu"; rev = version; - sha256 = "1igabfy3fd7qndihmkfk9incc15pjxpxh2cn5pfw5fxfwrpjrarn"; + sha256 = "s6n7nDO15DZSJ1EOPoNvjdFv/QtOoGiUa2b/k3kzWe8="; }; - patches = [ - # Not included in 0.9.17.1, but will be in the next version. - (fetchpatch { - name = "no-poppler-splash.patch"; - url = "https://github.com/jwilk/pdf2djvu/commit/2ec7eee57a47bbfd296badaa03dc20bf71b50201.patch"; - sha256 = "03kap7k2j29r16qgl781cxpswzg3r2yn513cqycgl0vax2xj3gly"; - }) - ]; - nativeBuildInputs = [ autoreconfHook pkg-config ]; buildInputs = [ @@ -62,6 +52,10 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; + # Required by Poppler + # https://github.com/jwilk/pdf2djvu/commit/373e065faf2f0d868a3700788d20a96e9528bb12 + CXXFLAGS = "-std=c++17"; + meta = with lib; { description = "Creates djvu files from PDF files"; homepage = "https://jwilk.net/software/pdf2djvu";