nixpkgs/pkgs/tools/networking/mu/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

54 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, meson
, ninja
, pkg-config
, coreutils
, emacs
, glib
, gmime3
, texinfo
, xapian
}:
2012-12-25 23:59:48 +04:00
stdenv.mkDerivation rec {
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 {
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
};
postPatch = ''
# 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 \
--replace "/bin/rm" "${coreutils}/bin/rm"
'';
2020-05-06 08:27:04 +03:00
buildInputs = [ emacs glib gmime3 texinfo xapian ];
2017-03-03 04:41:14 +03:00
mesonFlags = [
"-Dguile=disabled"
"-Dreadline=disabled"
];
2018-02-05 16:44:54 +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;
meta = with lib; {
description = "A collection of utilties for indexing and searching Maildirs";
license = licenses.gpl3Plus;
homepage = "https://www.djcbsoftware.nl/code/mu/";
changelog = "https://github.com/djcb/mu/releases/tag/v${version}";
2021-08-27 10:46:59 +03:00
maintainers = with maintainers; [ antono chvp peterhoeg ];
platforms = platforms.unix;
2012-12-25 23:59:48 +04:00
};
}