@@ -0,0 +1,38 @@
1+{ stdenv, fetchFromGitHub, emacs, lib }:
2+
3+stdenv.mkDerivation {
4+ pname = "mu4e-patch";
5+ version = "2019-05-09";
6+
7+ src = fetchFromGitHub {
8+ owner = "seanfarley";
9+ repo = "mu4e-patch";
10+ rev = "522da46c1653b1cacc79cde91d6534da7ae9517d";
11+ sha256 = "sha256-1lV4dDuCdyCUXi/In2DzYJPEHuAc9Jfbz2ZecNZwn4I=";
12+ };
13+
14+ buildInputs = [
15+ emacs
16+ ];
17+
18+ buildPhase = ''
19+ runHook preBuild
20+ emacs -L . --batch -f batch-byte-compile *.el
21+ runHook postBuild
22+ '';
23+
24+ installPhase = ''
25+ runHook preInstall
26+ install -d $out/share/emacs/site-lisp
27+ install *.el *.elc $out/share/emacs/site-lisp
28+ runHook postInstall
29+ '';
30+
31+ meta = {
32+ description = "Colorize patch emails in mu4e";
33+ homepage = "https://github.com/seanfarley/mu4e-patch";
34+ license = lib.licenses.gpl3Plus;
35+ maintainers = with lib.maintainers; [ leungbk ];
36+ platforms = emacs.meta.platforms;
37+ };
38+}