mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 22:32:58 +03:00
c9baba9212
(My OCD kicked in today...) Remove repeated package names, capitalize first word, remove trailing periods and move overlong descriptions to longDescription. I also simplified some descriptions as well, when they were particularly long or technical, often based on Arch Linux' package descriptions. I've tried to stay away from generated expressions (and I think I succeeded). Some specifics worth mentioning: * cron, has "Vixie Cron" in its description. The "Vixie" part is not mentioned anywhere else. I kept it in a parenthesis at the end of the description. * ctags description started with "Exuberant Ctags ...", and the "exuberant" part is not mentioned elsewhere. Kept it in a parenthesis at the end of description. * nix has the description "The Nix Deployment System". Since that doesn't really say much what it is/does (especially after removing the package name!), I changed that to "Powerful package manager that makes package management reliable and reproducible" (borrowed from nixos.org). * Tons of "GNU Foo, Foo is a [the important bits]" descriptions is changed to just [the important bits]. If the package name doesn't contain GNU I don't think it's needed to say it in the description either.
79 lines
1.8 KiB
Nix
79 lines
1.8 KiB
Nix
{ fetchurl, stdenv, bash, emacs, gdb, glib, gmime, gnupg,
|
|
pkgconfig, talloc, xapian
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "notmuch-0.18.1";
|
|
|
|
src = fetchurl {
|
|
url = "http://notmuchmail.org/releases/${name}.tar.gz";
|
|
sha256 = "1pdp9l7yv71d3fjb30qyccva8h03hvg88q4a00yi50v2j70kvmgj";
|
|
};
|
|
|
|
buildInputs = [ bash emacs gdb glib gmime gnupg pkgconfig talloc xapian ];
|
|
|
|
patchPhase = ''
|
|
(cd test && for prg in \
|
|
aggregate-results.sh \
|
|
argument-parsing \
|
|
atomicity \
|
|
author-order \
|
|
basic \
|
|
crypto \
|
|
count \
|
|
dump-restore \
|
|
emacs \
|
|
emacs-large-search-buffer \
|
|
encoding \
|
|
from-guessing \
|
|
help-test \
|
|
hooks \
|
|
json \
|
|
long-id \
|
|
maildir-sync \
|
|
multipart \
|
|
new \
|
|
notmuch-test \
|
|
python \
|
|
raw \
|
|
reply \
|
|
search \
|
|
search-by-folder \
|
|
search-insufficient-from-quoting \
|
|
search-folder-coherence \
|
|
search-limiting \
|
|
search-output \
|
|
search-position-overlap-bug \
|
|
symbol-hiding \
|
|
tagging \
|
|
test-lib.sh \
|
|
test-verbose \
|
|
thread-naming \
|
|
thread-order \
|
|
uuencode \
|
|
;do
|
|
substituteInPlace "$prg" \
|
|
--replace "#!/usr/bin/env bash" "#!${bash}/bin/bash"
|
|
done)
|
|
|
|
for src in \
|
|
crypto.c \
|
|
emacs/notmuch-crypto.el
|
|
do
|
|
substituteInPlace "$src" \
|
|
--replace \"gpg\" \"${gnupg}/bin/gpg2\"
|
|
done
|
|
'';
|
|
|
|
# XXX: emacs tests broken
|
|
doCheck = false;
|
|
checkTarget = "test";
|
|
|
|
meta = {
|
|
description = "Mail indexer";
|
|
license = stdenv.lib.licenses.gpl3;
|
|
maintainers = with stdenv.lib.maintainers; [ chaoflow garbas ];
|
|
platforms = stdenv.lib.platforms.gnu;
|
|
};
|
|
}
|