summary refs log tree commit diff
path: root/pkgs/tools/networking/mu
diff options
context:
space:
mode:
authorAnthony Cowley <acowley@gmail.com>2017-01-04 16:25:59 -0500
committerAnthony Cowley <acowley@gmail.com>2017-01-05 17:55:54 -0500
commit8ca70e358d8836c66153e85db2aee4a0fd44fd21 (patch)
tree4db5ec0f78c7c2542a56f8a04d000f89a1126bbf /pkgs/tools/networking/mu
parent4f957a9fdb5a2d33287f3e38cd8a3e6c7f49bed5 (diff)
downloadnixpkgs-8ca70e358d8836c66153e85db2aee4a0fd44fd21.tar
nixpkgs-8ca70e358d8836c66153e85db2aee4a0fd44fd21.tar.gz
nixpkgs-8ca70e358d8836c66153e85db2aee4a0fd44fd21.tar.bz2
nixpkgs-8ca70e358d8836c66153e85db2aee4a0fd44fd21.tar.lz
nixpkgs-8ca70e358d8836c66153e85db2aee4a0fd44fd21.tar.xz
nixpkgs-8ca70e358d8836c66153e85db2aee4a0fd44fd21.tar.zst
nixpkgs-8ca70e358d8836c66153e85db2aee4a0fd44fd21.zip
mu: allow gtk-free builds
The gtk components are enabled by default when stdenv.isLinux is true.
Diffstat (limited to 'pkgs/tools/networking/mu')
-rw-r--r--pkgs/tools/networking/mu/default.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/tools/networking/mu/default.nix b/pkgs/tools/networking/mu/default.nix
index 0cd3e15e762..c82588559df 100644
--- a/pkgs/tools/networking/mu/default.nix
+++ b/pkgs/tools/networking/mu/default.nix
@@ -1,6 +1,7 @@
 { fetchurl, stdenv, sqlite, pkgconfig, autoreconfHook
 , xapian, glib, gmime, texinfo , emacs, guile
-, gtk3, webkitgtk24x, libsoup, icu }:
+, gtk3, webkitgtk24x, libsoup, icu
+, withMug ? stdenv.isLinux }:
 
 stdenv.mkDerivation rec {
   version = "0.9.18";
@@ -13,8 +14,7 @@ stdenv.mkDerivation rec {
 
   buildInputs = [
     sqlite pkgconfig xapian glib gmime texinfo emacs guile libsoup icu
-    autoreconfHook
-    gtk3 webkitgtk24x ];
+    autoreconfHook ] ++ stdenv.lib.optionals withMug [ gtk3 webkitgtk24x ];
 
   preBuild = ''
     # Fix mu4e-builddir (set it to $out)
@@ -27,7 +27,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/
   '';