2022-06-25 14:31:08 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, coreutils
|
|
|
|
, emacs
|
|
|
|
, glib
|
|
|
|
, gmime3
|
|
|
|
, texinfo
|
|
|
|
, xapian
|
|
|
|
}:
|
2012-12-25 19:59:48 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "mu";
|
2022-10-25 07:32:04 +00:00
|
|
|
version = "1.8.11";
|
2012-12-25 19:59:48 +00:00
|
|
|
|
2017-03-03 01:41:14 +00:00
|
|
|
src = fetchFromGitHub {
|
2022-06-27 03:54:46 +00:00
|
|
|
owner = "djcb";
|
|
|
|
repo = "mu";
|
|
|
|
rev = "v${version}";
|
2022-10-25 07:32:04 +00:00
|
|
|
hash = "sha256-IEfwAAUqEGtN4vww0pfW7iuIY/U3eqzC+MJsqtossCw=";
|
2012-12-25 19:59:48 +00:00
|
|
|
};
|
|
|
|
|
2022-06-25 14:31:08 +00:00
|
|
|
postPatch = ''
|
2022-06-27 03:54:46 +00:00
|
|
|
# Fix mu4e-builddir (set it to $out)
|
|
|
|
substituteInPlace mu4e/mu4e-config.el.in \
|
|
|
|
--replace "@abs_top_builddir@" "$out"
|
2022-08-16 07:44:05 +00:00
|
|
|
substituteInPlace lib/utils/mu-test-utils.cc \
|
2022-06-27 03:54:46 +00:00
|
|
|
--replace "/bin/rm" "${coreutils}/bin/rm"
|
|
|
|
'';
|
2020-05-06 05:27:04 +00:00
|
|
|
|
2022-06-25 14:31:08 +00:00
|
|
|
buildInputs = [ emacs glib gmime3 texinfo xapian ];
|
2017-03-03 01:41:14 +00:00
|
|
|
|
2022-06-25 14:31:08 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dguile=disabled"
|
|
|
|
"-Dreadline=disabled"
|
|
|
|
];
|
2018-02-05 13:44:54 +00:00
|
|
|
|
2022-06-25 14:31:08 +00:00
|
|
|
nativeBuildInputs = [ pkg-config meson ninja ];
|
2014-07-03 09:15:55 +00:00
|
|
|
|
2018-02-05 13:44:54 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2013-10-01 21:47:57 +00:00
|
|
|
description = "A collection of utilties for indexing and searching Maildirs";
|
2015-09-24 08:38:43 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.djcbsoftware.nl/code/mu/";
|
2022-06-25 14:31:08 +00:00
|
|
|
changelog = "https://github.com/djcb/mu/releases/tag/v${version}";
|
2021-08-27 07:46:59 +00:00
|
|
|
maintainers = with maintainers; [ antono chvp peterhoeg ];
|
2022-06-27 03:54:46 +00:00
|
|
|
platforms = platforms.unix;
|
2012-12-25 19:59:48 +00:00
|
|
|
};
|
|
|
|
}
|