2011-09-21 22:04:43 +02:00
|
|
|
{ fetchurl, stdenv, bash, emacs, gdb, git, glib, gmime, gnupg1, pkgconfig, talloc, xapian }:
|
2011-02-13 02:34:49 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2011-09-21 22:04:43 +02:00
|
|
|
name = "notmuch-0.8";
|
2011-02-13 02:34:49 +01:00
|
|
|
|
2011-09-21 22:04:43 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://notmuchmail.org/releases/${name}.tar.gz";
|
|
|
|
sha256 = "f40bcdc6447cae9f76d5b4e70ab70d87e4a813cd123b524c1dc3155a3371a949";
|
2011-02-13 02:34:49 +01:00
|
|
|
};
|
|
|
|
|
2011-05-06 23:07:48 +02:00
|
|
|
buildInputs = [ bash emacs gdb git glib gmime gnupg1 pkgconfig talloc xapian ];
|
2011-04-18 19:19:44 +02:00
|
|
|
|
2011-04-26 22:57:21 +02:00
|
|
|
# XXX: Make me a loop
|
2011-04-18 19:19:44 +02:00
|
|
|
patchPhase = ''
|
2011-09-21 22:04:43 +02:00
|
|
|
# substituteInPlace "test/atomicity" \
|
|
|
|
# --replace "#!/usr/bin/env bash" "#!${bash}/bin/bash"
|
|
|
|
substituteInPlace "test/aggregate-results.sh" \
|
|
|
|
--replace "#!/usr/bin/env bash" "#!${bash}/bin/bash"
|
2011-04-18 19:19:44 +02:00
|
|
|
substituteInPlace "test/author-order" \
|
2011-09-21 22:04:43 +02:00
|
|
|
--replace "#!/usr/bin/env bash" "#!${bash}/bin/bash"
|
2011-04-18 19:19:44 +02:00
|
|
|
substituteInPlace "test/basic" \
|
2011-09-21 22:04:43 +02:00
|
|
|
--replace "#!/usr/bin/env bash" "#!${bash}/bin/bash"
|
2011-04-18 19:19:44 +02:00
|
|
|
substituteInPlace "test/crypto" \
|
2011-09-21 22:04:43 +02:00
|
|
|
--replace "#!/usr/bin/env bash" "#!${bash}/bin/bash"
|
2011-04-18 19:19:44 +02:00
|
|
|
substituteInPlace "test/dump-restore" \
|
2011-09-21 22:04:43 +02:00
|
|
|
--replace "#!/usr/bin/env bash" "#!${bash}/bin/bash"
|
2011-04-18 19:19:44 +02:00
|
|
|
substituteInPlace "test/emacs" \
|
2011-09-21 22:04:43 +02:00
|
|
|
--replace "#!/usr/bin/env bash" "#!${bash}/bin/bash"
|
2011-04-18 19:19:44 +02:00
|
|
|
substituteInPlace "test/emacs-large-search-buffer" \
|
2011-09-21 22:04:43 +02:00
|
|
|
--replace "#!/usr/bin/env bash" "#!${bash}/bin/bash"
|
2011-04-18 19:19:44 +02:00
|
|
|
substituteInPlace "test/encoding" \
|
2011-09-21 22:04:43 +02:00
|
|
|
--replace "#!/usr/bin/env bash" "#!${bash}/bin/bash"
|
2011-04-18 19:19:44 +02:00
|
|
|
substituteInPlace "test/from-guessing" \
|
2011-09-21 22:04:43 +02:00
|
|
|
--replace "#!/usr/bin/env bash" "#!${bash}/bin/bash"
|
2011-04-18 19:19:44 +02:00
|
|
|
substituteInPlace "test/json" \
|
2011-09-21 22:04:43 +02:00
|
|
|
--replace "#!/usr/bin/env bash" "#!${bash}/bin/bash"
|
2011-04-18 19:19:44 +02:00
|
|
|
substituteInPlace "test/long-id" \
|
2011-09-21 22:04:43 +02:00
|
|
|
--replace "#!/usr/bin/env bash" "#!${bash}/bin/bash"
|
2011-04-18 19:19:44 +02:00
|
|
|
substituteInPlace "test/maildir-sync" \
|
2011-09-21 22:04:43 +02:00
|
|
|
--replace "#!/usr/bin/env bash" "#!${bash}/bin/bash"
|
2011-04-18 19:19:44 +02:00
|
|
|
substituteInPlace "test/new" \
|
2011-09-21 22:04:43 +02:00
|
|
|
--replace "#!/usr/bin/env bash" "#!${bash}/bin/bash"
|
2011-04-18 19:19:44 +02:00
|
|
|
substituteInPlace "test/notmuch-test" \
|
2011-09-21 22:04:43 +02:00
|
|
|
--replace "#!/usr/bin/env bash" "#!${bash}/bin/bash"
|
2011-04-18 19:19:44 +02:00
|
|
|
substituteInPlace "test/raw" \
|
2011-09-21 22:04:43 +02:00
|
|
|
--replace "#!/usr/bin/env bash" "#!${bash}/bin/bash"
|
2011-04-18 19:19:44 +02:00
|
|
|
substituteInPlace "test/reply" \
|
2011-09-21 22:04:43 +02:00
|
|
|
--replace "#!/usr/bin/env bash" "#!${bash}/bin/bash"
|
2011-04-18 19:19:44 +02:00
|
|
|
substituteInPlace "test/search" \
|
2011-09-21 22:04:43 +02:00
|
|
|
--replace "#!/usr/bin/env bash" "#!${bash}/bin/bash"
|
2011-04-18 19:19:44 +02:00
|
|
|
substituteInPlace "test/search-by-folder" \
|
2011-09-21 22:04:43 +02:00
|
|
|
--replace "#!/usr/bin/env bash" "#!${bash}/bin/bash"
|
2011-04-18 19:19:44 +02:00
|
|
|
substituteInPlace "test/search-insufficient-from-quoting" \
|
2011-09-21 22:04:43 +02:00
|
|
|
--replace "#!/usr/bin/env bash" "#!${bash}/bin/bash"
|
|
|
|
substituteInPlace "test/search-folder-coherence" \
|
|
|
|
--replace "#!/usr/bin/env bash" "#!${bash}/bin/bash"
|
2011-04-18 19:19:44 +02:00
|
|
|
substituteInPlace "test/search-output" \
|
2011-09-21 22:04:43 +02:00
|
|
|
--replace "#!/usr/bin/env bash" "#!${bash}/bin/bash"
|
2011-04-18 19:19:44 +02:00
|
|
|
substituteInPlace "test/search-position-overlap-bug" \
|
2011-09-21 22:04:43 +02:00
|
|
|
--replace "#!/usr/bin/env bash" "#!${bash}/bin/bash"
|
|
|
|
substituteInPlace "test/symbol-hiding" \
|
|
|
|
--replace "#!/usr/bin/env bash" "#!${bash}/bin/bash"
|
2011-04-18 19:19:44 +02:00
|
|
|
substituteInPlace "test/test-lib.sh" \
|
2011-09-21 22:04:43 +02:00
|
|
|
--replace "#!/usr/bin/env bash" "#!${bash}/bin/bash"
|
2011-04-18 19:19:44 +02:00
|
|
|
substituteInPlace "test/test-verbose" \
|
2011-09-21 22:04:43 +02:00
|
|
|
--replace "#!/usr/bin/env bash" "#!${bash}/bin/bash"
|
2011-04-18 19:19:44 +02:00
|
|
|
substituteInPlace "test/thread-naming" \
|
2011-09-21 22:04:43 +02:00
|
|
|
--replace "#!/usr/bin/env bash" "#!${bash}/bin/bash"
|
2011-04-18 19:19:44 +02:00
|
|
|
substituteInPlace "test/thread-order" \
|
2011-09-21 22:04:43 +02:00
|
|
|
--replace "#!/usr/bin/env bash" "#!${bash}/bin/bash"
|
2011-04-18 19:19:44 +02:00
|
|
|
substituteInPlace "test/uuencode" \
|
2011-09-21 22:04:43 +02:00
|
|
|
--replace "#!/usr/bin/env bash" "#!${bash}/bin/bash"
|
2011-04-18 19:19:44 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
make test
|
|
|
|
'';
|
2011-02-13 02:34:49 +01:00
|
|
|
|
|
|
|
meta = {
|
2011-04-18 19:19:54 +02:00
|
|
|
description = "Notmuch -- The mail indexer";
|
2011-02-13 02:34:49 +01:00
|
|
|
|
|
|
|
longDescription = "";
|
|
|
|
|
|
|
|
license = "GPLv3";
|
|
|
|
|
|
|
|
maintainers = [ stdenv.lib.maintainers.chaoflow ];
|
|
|
|
platforms = stdenv.lib.platforms.gnu; # arbitrary choice
|
|
|
|
};
|
|
|
|
}
|