mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
recoll: Add support to build without QT
This commit is contained in:
parent
f8e12b7875
commit
79b81c31d4
@ -2,7 +2,8 @@
|
|||||||
, qt4, xapian, file, python, perl
|
, qt4, xapian, file, python, perl
|
||||||
, djvulibre, groff, libxslt, unzip, poppler_utils, antiword, catdoc, lyx
|
, djvulibre, groff, libxslt, unzip, poppler_utils, antiword, catdoc, lyx
|
||||||
, libwpd, unrtf, untex
|
, libwpd, unrtf, untex
|
||||||
, ghostscript, gawk, gnugrep, gnused, gnutar, gzip, libiconv }:
|
, ghostscript, gawk, gnugrep, gnused, gnutar, gzip, libiconv, zlib
|
||||||
|
, withGui ? true }:
|
||||||
|
|
||||||
assert stdenv.system != "powerpc-linux";
|
assert stdenv.system != "powerpc-linux";
|
||||||
|
|
||||||
@ -15,10 +16,13 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "186bj8zx2xw9hwrzvzxdgdin9nj7msiqh5j57w5g7j4abdlsisjn";
|
sha256 = "186bj8zx2xw9hwrzvzxdgdin9nj7msiqh5j57w5g7j4abdlsisjn";
|
||||||
};
|
};
|
||||||
|
|
||||||
configureFlags = [ "--enable-recollq" ] ++
|
configureFlags = [ "--enable-recollq" ]
|
||||||
(if stdenv.isLinux then [ "--with-inotify" ] else [ "--without-inotify" ]);
|
++ lib.optionals (!withGui) [ "--disable-qtgui" "--disable-x11mon" ]
|
||||||
|
++ (if stdenv.isLinux then [ "--with-inotify" ] else [ "--without-inotify" ]);
|
||||||
|
|
||||||
buildInputs = [ qt4 xapian file python bison ];
|
buildInputs = [ xapian file python bison zlib ]
|
||||||
|
++ lib.optional withGui qt4
|
||||||
|
++ lib.optional stdenv.isDarwin libiconv;
|
||||||
|
|
||||||
patchPhase = stdenv.lib.optionalString stdenv.isDarwin ''
|
patchPhase = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||||
sed -i 's/-Wl,--no-undefined -Wl,--warn-unresolved-symbols//' Makefile.am
|
sed -i 's/-Wl,--no-undefined -Wl,--warn-unresolved-symbols//' Makefile.am
|
||||||
|
Loading…
Reference in New Issue
Block a user