Skip to content
Permalink
Browse files

mu: add checkInputs

  • Loading branch information
peterhoeg committed Mar 24, 2017
1 parent 73a6832 commit 7866ed9788078942b9e36ed6a4d03efbc53c300b
Showing with 13 additions and 9 deletions.
  1. +13 −9 pkgs/tools/networking/mu/default.nix
@@ -1,15 +1,17 @@
{ fetchurl, stdenv, sqlite, pkgconfig, autoreconfHook, pmccabe
{ stdenv, fetchFromGitHub, sqlite, pkgconfig, autoreconfHook, pmccabe
, xapian, glib, gmime, texinfo , emacs, guile
, gtk3, webkitgtk24x, libsoup, icu
, withMug ? false }:

stdenv.mkDerivation rec {
version = "0.9.18";
name = "mu-${version}";
version = "0.9.18";

src = fetchurl {
url = "https://github.com/djcb/mu/archive/${version}.tar.gz";
sha256 = "0gfwi4dwqhsz138plryd0j935vx2i44p63jpfx85ki3l4ysmmlwd";
src = fetchFromGitHub {
owner = "djcb";
repo = "mu";
rev = version;
sha256 = "0zy0p196bfrfzsq8f58xv04rpnr948sdvljflgzvi6js0vz4009y";
};

# as of 0.9.18 2 tests are failing but previously we had no tests
@@ -19,9 +21,10 @@ stdenv.mkDerivation rec {

# pmccabe should be a checkInput instead, but configure looks for it
buildInputs = [
sqlite xapian glib gmime texinfo emacs guile libsoup icu pmccabe
sqlite xapian glib gmime texinfo emacs guile libsoup icu
] ++ stdenv.lib.optionals withMug [ gtk3 webkitgtk24x ];
nativeBuildInputs = [ pkgconfig autoreconfHook ];
checkInputs = [ pmccabe ];

doCheck = true;

@@ -37,15 +40,16 @@ stdenv.mkDerivation rec {

# Install mug and msg2pdf
postInstall = stdenv.lib.optionalString withMug ''
cp -v toys/msg2pdf/msg2pdf $out/bin/
cp -v toys/mug/mug $out/bin/
for f in msg2pdf mug ; do
install -m755 toys/$f/$f $out/bin/$f
done
'';

meta = with stdenv.lib; {
description = "A collection of utilties for indexing and searching Maildirs";
license = licenses.gpl3Plus;
homepage = "http://www.djcbsoftware.nl/code/mu/";
platforms = platforms.mesaPlatforms;
maintainers = with maintainers; [ antono the-kenny ];
maintainers = with maintainers; [ antono the-kenny peterhoeg ];
};
}

0 comments on commit 7866ed9

Please sign in to comment.
You can’t perform that action at this time.