3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #85606 from magnetophon/mu

mu: 1.2 -> 1.4.1
This commit is contained in:
Jörg Thalheim 2020-04-20 11:25:51 +01:00 committed by GitHub
commit 9651e63fa3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,20 +5,15 @@
stdenv.mkDerivation rec {
pname = "mu";
version = "1.2";
version = "1.4.1";
src = fetchFromGitHub {
owner = "djcb";
repo = "mu";
rev = version;
sha256 = "0yhjlj0z23jw3cf2wfnl98y8q6gikvmhkb8vdm87bd7jw0bdnrfz";
sha256 = "0q2ik7fj5k9i76js4ijyxbgrwqff437lass0sd5if2r40rqh0as0";
};
# test-utils coredumps so don't run those
postPatch = ''
sed -i -e '/test-utils/d' lib/parser/Makefile.am
'';
buildInputs = [
sqlite xapian glib gmime3 texinfo emacs guile libsoup icu
] ++ stdenv.lib.optionals withMug [ gtk3 webkitgtk ];
@ -27,19 +22,17 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
preConfigure = "./autogen.sh";
preBuild = ''
# Fix mu4e-builddir (set it to $out)
substituteInPlace mu4e/mu4e-meta.el.in \
--replace "@abs_top_builddir@" "$out"
# We install msg2pdf to bin/msg2pdf, fix its location in elisp
substituteInPlace mu4e/mu4e-actions.el \
--replace "/toys/msg2pdf/" "/bin/"
'';
# Install mug and msg2pdf
# Install mug
postInstall = stdenv.lib.optionalString withMug ''
for f in msg2pdf mug ; do
for f in mug ; do
install -m755 toys/$f/$f $out/bin/$f
done
'';