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:
parent
69a0de865e
commit
3c013cdec9
@ -1,5 +1,5 @@
|
|||||||
{ fetchurl, stdenv, sqlite, pkgconfig, xapian, glib, gmime, texinfo, emacs, guile
|
{ 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 {
|
stdenv.mkDerivation rec {
|
||||||
version = "0.9.9.5";
|
version = "0.9.9.5";
|
||||||
@ -10,8 +10,9 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1hwkliyb8fjrz5sw9fcisssig0jkdxzhccw0ld0l9a10q1l9mqhp";
|
sha256 = "1hwkliyb8fjrz5sw9fcisssig0jkdxzhccw0ld0l9a10q1l9mqhp";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ sqlite pkgconfig xapian glib gmime texinfo emacs guile
|
buildInputs =
|
||||||
gtk3 webkit libsoup icu ];
|
[ sqlite pkgconfig xapian glib gmime texinfo emacs guile libsoup icu ]
|
||||||
|
++ stdenv.lib.optional withMug [ gtk3 webkit ];
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
# Fix mu4e-builddir (set it to $out)
|
# Fix mu4e-builddir (set it to $out)
|
||||||
@ -24,7 +25,7 @@ stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
# Install mug and msg2pdf
|
# Install mug and msg2pdf
|
||||||
postInstall = ''
|
postInstall = stdenv.lib.optionalString withMug ''
|
||||||
cp -v toys/msg2pdf/msg2pdf $out/bin/
|
cp -v toys/msg2pdf/msg2pdf $out/bin/
|
||||||
cp -v toys/mug/mug $out/bin/
|
cp -v toys/mug/mug $out/bin/
|
||||||
'';
|
'';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user