tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
notmuch: cleanup
Sandro Jäckel
4 years ago
b459d42e
6cd1b4ef
+15
-18
1 changed file
expand all
collapse all
unified
split
pkgs
applications
networking
mailreaders
notmuch
default.nix
+15
-18
pkgs/applications/networking/mailreaders/notmuch/default.nix
···
9
9
, withEmacs ? true
10
10
}:
11
11
12
12
-
with lib;
13
13
-
14
12
stdenv.mkDerivation rec {
13
13
+
pname = "notmuch";
15
14
version = "0.32.2";
16
16
-
pname = "notmuch";
17
17
-
18
18
-
passthru = {
19
19
-
pythonSourceRoot = "${src.name}/bindings/python";
20
20
-
inherit version;
21
21
-
};
22
15
23
16
src = fetchurl {
24
17
url = "https://notmuchmail.org/releases/notmuch-${version}.tar.xz";
···
30
23
doxygen # (optional) api docs
31
24
pythonPackages.sphinx # (optional) documentation -> doc/INSTALL
32
25
texinfo # (optional) documentation -> doc/INSTALL
33
33
-
] ++ optional withEmacs emacs;
26
26
+
] ++ lib.optional withEmacs emacs;
34
27
35
28
buildInputs = [
36
29
gnupg # undefined dependencies
···
41
34
];
42
35
43
36
postPatch = ''
44
44
-
patchShebangs configure
45
45
-
patchShebangs test/
37
37
+
patchShebangs configure test/
46
38
47
39
substituteInPlace lib/Makefile.local \
48
40
--replace '-install_name $(libdir)' "-install_name $out/lib"
49
49
-
'' + optionalString withEmacs ''
41
41
+
'' + lib.optionalString withEmacs ''
50
42
substituteInPlace emacs/notmuch-emacs-mua \
51
43
--replace 'EMACS:-emacs' 'EMACS:-${emacs}/bin/emacs' \
52
44
--replace 'EMACSCLIENT:-emacsclient' 'EMACSCLIENT:-${emacs}/bin/emacsclient'
···
56
48
"--zshcompletiondir=${placeholder "out"}/share/zsh/site-functions"
57
49
"--bashcompletiondir=${placeholder "out"}/share/bash-completion/completions"
58
50
"--infodir=${placeholder "info"}/share/info"
59
59
-
] ++ optional (!withEmacs) "--without-emacs"
60
60
-
++ optional (withEmacs) "--emacslispdir=${placeholder "emacs"}/share/emacs/site-lisp"
61
61
-
++ optional (isNull ruby) "--without-ruby";
51
51
+
] ++ lib.optional (!withEmacs) "--without-emacs"
52
52
+
++ lib.optional withEmacs "--emacslispdir=${placeholder "emacs"}/share/emacs/site-lisp"
53
53
+
++ lib.optional (isNull ruby) "--without-ruby";
62
54
63
55
# Notmuch doesn't use autoconf and consequently doesn't tag --bindir and
64
56
# friends
65
57
setOutputFlags = false;
66
58
enableParallelBuilding = true;
67
59
makeFlags = [ "V=1" ];
68
68
-
69
60
70
61
outputs = [ "out" "man" "info" ] ++ lib.optional withEmacs "emacs";
71
62
···
78
69
mkdir -p test/test-databases
79
70
ln -s ${test-database} test/test-databases/database-v1.tar.xz
80
71
'';
81
81
-
doCheck = !stdenv.hostPlatform.isDarwin && (versionAtLeast gmime.version "3.0.3");
72
72
+
73
73
+
doCheck = !stdenv.hostPlatform.isDarwin && (lib.versionAtLeast gmime.version "3.0.3");
82
74
checkTarget = "test";
83
75
checkInputs = [
84
76
which dtach openssl bash
···
93
85
94
86
dontGzipMan = true; # already compressed
95
87
96
96
-
meta = {
88
88
+
passthru = {
89
89
+
pythonSourceRoot = "${src.name}/bindings/python";
90
90
+
inherit version;
91
91
+
};
92
92
+
93
93
+
meta = with lib; {
97
94
description = "Mail indexer";
98
95
homepage = "https://notmuchmail.org/";
99
96
license = licenses.gpl3Plus;