2022-06-26 10:26:21 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, coreutils
|
|
|
|
, emacs
|
|
|
|
, glib
|
|
|
|
, gmime3
|
|
|
|
, texinfo
|
|
|
|
, xapian
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mu";
|
2022-07-18 16:21:45 +00:00
|
|
|
version = "1.8.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-07-14 12:49:19 +00:00
|
|
|
owner = "djcb";
|
|
|
|
repo = "mu";
|
|
|
|
rev = "v${version}";
|
2022-07-18 16:21:45 +00:00
|
|
|
sha256 = "u3MN7MrfHt/ylxDoNnfwnAOKdOAbVZwvIukje0EYgOo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
postPatch = ''
|
2022-07-14 12:49:19 +00:00
|
|
|
# Fix mu4e-builddir (set it to $out)
|
|
|
|
substituteInPlace mu4e/mu4e-config.el.in \
|
|
|
|
--replace "@abs_top_builddir@" "$out"
|
|
|
|
substituteInPlace lib/utils/mu-utils.cc \
|
|
|
|
--replace "/bin/rm" "${coreutils}/bin/rm"
|
|
|
|
'';
|
2020-05-15 21:57:56 +00:00
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
buildInputs = [ emacs glib gmime3 texinfo xapian ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dguile=disabled"
|
|
|
|
"-Dreadline=disabled"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
nativeBuildInputs = [ pkg-config meson ninja ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
enableParallelBuilding = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A collection of utilties for indexing and searching Maildirs";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
homepage = "https://www.djcbsoftware.nl/code/mu/";
|
2022-06-26 10:26:21 +00:00
|
|
|
changelog = "https://github.com/djcb/mu/releases/tag/v${version}";
|
2021-09-18 10:52:07 +00:00
|
|
|
maintainers = with maintainers; [ antono chvp peterhoeg ];
|
2022-07-14 12:49:19 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|