From 9cdfa8adc25daaabe4e08de040826a088f2f0dc9 Mon Sep 17 00:00:00 2001 From: Frank Doepper Date: Wed, 9 Sep 2020 19:10:17 +0200 Subject: [PATCH] recoll: qt4 -> qt5, fix build --- pkgs/applications/search/recoll/default.nix | 14 +++++++------- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/pkgs/applications/search/recoll/default.nix b/pkgs/applications/search/recoll/default.nix index 425e82000b7..fe9719efdef 100644 --- a/pkgs/applications/search/recoll/default.nix +++ b/pkgs/applications/search/recoll/default.nix @@ -1,5 +1,5 @@ -{ stdenv, fetchurl, lib, bison -, qt4, xapian, file, python, perl +{ mkDerivation, stdenv, fetchurl, lib, bison +, qtbase, xapian, file, python, perl , djvulibre, groff, libxslt, unzip, poppler_utils, antiword, catdoc, lyx , libwpd, unrtf, untex , ghostscript, gawk, gnugrep, gnused, gnutar, gzip, libiconv, zlib @@ -7,7 +7,7 @@ assert stdenv.hostPlatform.system != "powerpc-linux"; -stdenv.mkDerivation rec { +mkDerivation rec { ver = "1.24.5"; name = "recoll-${ver}"; @@ -16,12 +16,12 @@ stdenv.mkDerivation rec { sha256 = "10m3a0ghnyipjcxapszlr8adyy2yaaxx4vgrkxrfmz13814z89cv"; }; - configureFlags = [ "--enable-recollq" ] + configureFlags = [ "--enable-recollq" "--disable-webkit" ] ++ lib.optionals (!withGui) [ "--disable-qtgui" "--disable-x11mon" ] ++ (if stdenv.isLinux then [ "--with-inotify" ] else [ "--without-inotify" ]); buildInputs = [ xapian file python bison zlib ] - ++ lib.optional withGui qt4 + ++ lib.optional withGui qtbase ++ lib.optional stdenv.isDarwin libiconv; patchPhase = stdenv.lib.optionalString stdenv.isDarwin '' @@ -31,7 +31,7 @@ stdenv.mkDerivation rec { # the filters search through ${PATH} using a sh proc 'checkcmds' for the # filtering utils. Short circuit this by replacing the filtering command with - # the absolute path to the filtering command. + # the absolute path to the filtering command. postInstall = '' for f in $out/share/recoll/filters/* ; do if [[ ! "$f" =~ \.zip$ ]]; then @@ -67,7 +67,7 @@ stdenv.mkDerivation rec { description = "A full-text search tool"; longDescription = '' Recoll is an Xapian frontend that can search through files, archive - members, email attachments. + members, email attachments. ''; homepage = "https://www.lesbonscomptes.com/recoll/"; license = licenses.gpl2; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f4caf98bd19..16a79932be4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6588,7 +6588,7 @@ in recutils = callPackage ../tools/misc/recutils { }; - recoll = callPackage ../applications/search/recoll { }; + recoll = libsForQt5.callPackage ../applications/search/recoll { }; redoc-cli = nodePackages.redoc-cli;