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