mu: fix build via disabling mug GUI by default

It seems it can't handle gtk-3.10.
CC @the-kenny
This commit is contained in:
Vladimír Čunát 2013-12-10 21:27:47 +01:00
parent 69a0de865e
commit 3c013cdec9

View File

@ -1,5 +1,5 @@
{ fetchurl, stdenv, sqlite, pkgconfig, xapian, glib, gmime, texinfo, emacs, guile
, gtk3, webkit, libsoup, icu }:
, gtk3, webkit, libsoup, icu, withMug ? false /* doesn't build with current gtk3 */ }:
stdenv.mkDerivation rec {
version = "0.9.9.5";
@ -10,8 +10,9 @@ stdenv.mkDerivation rec {
sha256 = "1hwkliyb8fjrz5sw9fcisssig0jkdxzhccw0ld0l9a10q1l9mqhp";
};
buildInputs = [ sqlite pkgconfig xapian glib gmime texinfo emacs guile
gtk3 webkit libsoup icu ];
buildInputs =
[ sqlite pkgconfig xapian glib gmime texinfo emacs guile libsoup icu ]
++ stdenv.lib.optional withMug [ gtk3 webkit ];
preBuild = ''
# Fix mu4e-builddir (set it to $out)
@ -24,7 +25,7 @@ stdenv.mkDerivation rec {
'';
# Install mug and msg2pdf
postInstall = ''
postInstall = stdenv.lib.optionalString withMug ''
cp -v toys/msg2pdf/msg2pdf $out/bin/
cp -v toys/mug/mug $out/bin/
'';