Skip to content

Commit c684c0e

Browse files
Peter Hoegpeterhoeg
Peter Hoeg
authored andcommittedMay 11, 2017
mu: add checkInputs
1 parent 97c613c commit c684c0e

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed
 

‎pkgs/tools/networking/mu/default.nix

+13-9
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
{ fetchurl, stdenv, sqlite, pkgconfig, autoreconfHook, pmccabe
1+
{ stdenv, fetchFromGitHub, sqlite, pkgconfig, autoreconfHook, pmccabe
22
, xapian, glib, gmime, texinfo , emacs, guile
33
, gtk3, webkitgtk24x, libsoup, icu
44
, withMug ? false }:
55

66
stdenv.mkDerivation rec {
7-
version = "0.9.18";
87
name = "mu-${version}";
8+
version = "0.9.18";
99

10-
src = fetchurl {
11-
url = "https://github.com/djcb/mu/archive/${version}.tar.gz";
12-
sha256 = "0gfwi4dwqhsz138plryd0j935vx2i44p63jpfx85ki3l4ysmmlwd";
10+
src = fetchFromGitHub {
11+
owner = "djcb";
12+
repo = "mu";
13+
rev = version;
14+
sha256 = "0zy0p196bfrfzsq8f58xv04rpnr948sdvljflgzvi6js0vz4009y";
1315
};
1416

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

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

2629
doCheck = true;
2730

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

3841
# Install mug and msg2pdf
3942
postInstall = stdenv.lib.optionalString withMug ''
40-
cp -v toys/msg2pdf/msg2pdf $out/bin/
41-
cp -v toys/mug/mug $out/bin/
43+
for f in msg2pdf mug ; do
44+
install -m755 toys/$f/$f $out/bin/$f
45+
done
4246
'';
4347

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

0 commit comments

Comments
 (0)