1
- { fetchurl , stdenv , sqlite , pkgconfig , autoreconfHook , pmccabe
1
+ { stdenv , fetchFromGitHub , sqlite , pkgconfig , autoreconfHook , pmccabe
2
2
, xapian , glib , gmime , texinfo , emacs , guile
3
3
, gtk3 , webkitgtk24x , libsoup , icu
4
4
, withMug ? false } :
5
5
6
6
stdenv . mkDerivation rec {
7
- version = "0.9.18" ;
8
7
name = "mu-${ version } " ;
8
+ version = "0.9.18" ;
9
9
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" ;
13
15
} ;
14
16
15
17
# as of 0.9.18 2 tests are failing but previously we had no tests
@@ -19,9 +21,10 @@ stdenv.mkDerivation rec {
19
21
20
22
# pmccabe should be a checkInput instead, but configure looks for it
21
23
buildInputs = [
22
- sqlite xapian glib gmime texinfo emacs guile libsoup icu pmccabe
24
+ sqlite xapian glib gmime texinfo emacs guile libsoup icu
23
25
] ++ stdenv . lib . optionals withMug [ gtk3 webkitgtk24x ] ;
24
26
nativeBuildInputs = [ pkgconfig autoreconfHook ] ;
27
+ checkInputs = [ pmccabe ] ;
25
28
26
29
doCheck = true ;
27
30
@@ -37,15 +40,16 @@ stdenv.mkDerivation rec {
37
40
38
41
# Install mug and msg2pdf
39
42
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
42
46
'' ;
43
47
44
48
meta = with stdenv . lib ; {
45
49
description = "A collection of utilties for indexing and searching Maildirs" ;
46
50
license = licenses . gpl3Plus ;
47
51
homepage = "http://www.djcbsoftware.nl/code/mu/" ;
48
52
platforms = platforms . mesaPlatforms ;
49
- maintainers = with maintainers ; [ antono the-kenny ] ;
53
+ maintainers = with maintainers ; [ antono the-kenny peterhoeg ] ;
50
54
} ;
51
55
}
0 commit comments