2011-04-18 18:19:44 +01:00
|
|
|
{ fetchgit, stdenv, bash, emacs, glib, gmime, gnupg1orig, pkgconfig, talloc, xapian }:
|
2011-02-13 01:34:49 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2011-04-18 18:19:44 +01:00
|
|
|
name = "notmuch-0.5-20110322-2";
|
2011-02-13 01:34:49 +00:00
|
|
|
|
2011-02-14 05:01:33 +00:00
|
|
|
src = fetchgit {
|
2011-04-18 18:19:44 +01:00
|
|
|
url = "git://github.com/chaoflow/notmuch";
|
|
|
|
# personal
|
|
|
|
rev = "9515cc2d76a9b9c28948156036037b0efb5e136c";
|
|
|
|
sha256 = "d142cc1cff4c810b22b9c7b8c831bb25e7076e7d74089120d1ad6ccb0a95159c";
|
|
|
|
# master
|
|
|
|
# rev = "74bc93f02d5061e0eb360571c2664541ae5bd98b";
|
|
|
|
# sha256 = "7cc2ea0658c97c39586249bcb815ebcb07e59c62d78e0cff748f3f4be12d2c54";
|
2011-02-13 01:34:49 +00:00
|
|
|
};
|
|
|
|
|
2011-04-18 18:19:44 +01:00
|
|
|
buildInputs = [ bash emacs glib gmime gnupg1orig pkgconfig talloc xapian ];
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace "test/author-order" \
|
|
|
|
--replace "#!/bin/bash" "#!${bash}/bin/bash"
|
|
|
|
substituteInPlace "test/basic" \
|
|
|
|
--replace "#!/bin/bash" "#!${bash}/bin/bash"
|
|
|
|
substituteInPlace "test/crypto" \
|
|
|
|
--replace "#!/bin/bash" "#!${bash}/bin/bash"
|
|
|
|
substituteInPlace "test/dump-restore" \
|
|
|
|
--replace "#!/bin/bash" "#!${bash}/bin/bash"
|
|
|
|
substituteInPlace "test/emacs" \
|
|
|
|
--replace "#!/bin/bash" "#!${bash}/bin/bash"
|
|
|
|
substituteInPlace "test/emacs-large-search-buffer" \
|
|
|
|
--replace "#!/bin/bash" "#!${bash}/bin/bash"
|
|
|
|
substituteInPlace "test/encoding" \
|
|
|
|
--replace "#!/bin/bash" "#!${bash}/bin/bash"
|
|
|
|
substituteInPlace "test/from-guessing" \
|
|
|
|
--replace "#!/bin/bash" "#!${bash}/bin/bash"
|
|
|
|
substituteInPlace "test/json" \
|
|
|
|
--replace "#!/bin/bash" "#!${bash}/bin/bash"
|
|
|
|
substituteInPlace "test/long-id" \
|
|
|
|
--replace "#!/bin/bash" "#!${bash}/bin/bash"
|
|
|
|
substituteInPlace "test/maildir-sync" \
|
|
|
|
--replace "#!/bin/bash" "#!${bash}/bin/bash"
|
|
|
|
substituteInPlace "test/new" \
|
|
|
|
--replace "#!/bin/bash" "#!${bash}/bin/bash"
|
|
|
|
substituteInPlace "test/notmuch-test" \
|
|
|
|
--replace "#!/bin/bash" "#!${bash}/bin/bash"
|
|
|
|
substituteInPlace "test/raw" \
|
|
|
|
--replace "#!/bin/bash" "#!${bash}/bin/bash"
|
|
|
|
substituteInPlace "test/reply" \
|
|
|
|
--replace "#!/bin/bash" "#!${bash}/bin/bash"
|
|
|
|
substituteInPlace "test/search" \
|
|
|
|
--replace "#!/bin/bash" "#!${bash}/bin/bash"
|
|
|
|
substituteInPlace "test/search-by-folder" \
|
|
|
|
--replace "#!/bin/bash" "#!${bash}/bin/bash"
|
|
|
|
substituteInPlace "test/search-insufficient-from-quoting" \
|
|
|
|
--replace "#!/bin/bash" "#!${bash}/bin/bash"
|
|
|
|
substituteInPlace "test/search-output" \
|
|
|
|
--replace "#!/bin/bash" "#!${bash}/bin/bash"
|
|
|
|
substituteInPlace "test/search-position-overlap-bug" \
|
|
|
|
--replace "#!/bin/bash" "#!${bash}/bin/bash"
|
|
|
|
substituteInPlace "test/test-lib.sh" \
|
|
|
|
--replace "#!/bin/bash" "#!${bash}/bin/bash"
|
|
|
|
substituteInPlace "test/test-verbose" \
|
|
|
|
--replace "#!/bin/bash" "#!${bash}/bin/bash"
|
|
|
|
substituteInPlace "test/thread-naming" \
|
|
|
|
--replace "#!/bin/bash" "#!${bash}/bin/bash"
|
|
|
|
substituteInPlace "test/thread-order" \
|
|
|
|
--replace "#!/bin/bash" "#!${bash}/bin/bash"
|
|
|
|
substituteInPlace "test/uuencode" \
|
|
|
|
--replace "#!/bin/bash" "#!${bash}/bin/bash"
|
|
|
|
'';
|
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
make test
|
|
|
|
'';
|
2011-02-13 01:34:49 +00:00
|
|
|
|
|
|
|
meta = {
|
2011-04-18 18:19:44 +01:00
|
|
|
description = "Notmuch -- The mail indexer + inheritable-tags-hack + crypto";
|
2011-02-13 01:34:49 +00:00
|
|
|
|
|
|
|
longDescription = "";
|
|
|
|
|
|
|
|
license = "GPLv3";
|
|
|
|
|
|
|
|
maintainers = [ stdenv.lib.maintainers.chaoflow ];
|
|
|
|
platforms = stdenv.lib.platforms.gnu; # arbitrary choice
|
|
|
|
};
|
|
|
|
}
|