about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/editors/emacs/elisp-packages/mu4e-patch/default.nix
blob: 4a436339ebc4636aa4d083082fade58ed0f1670d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ stdenv, fetchFromGitHub, emacs, lib }:

stdenv.mkDerivation {
  pname = "mu4e-patch";
  version = "2019-05-09";

  src = fetchFromGitHub {
    owner = "seanfarley";
    repo = "mu4e-patch";
    rev = "522da46c1653b1cacc79cde91d6534da7ae9517d";
    sha256 = "sha256-1lV4dDuCdyCUXi/In2DzYJPEHuAc9Jfbz2ZecNZwn4I=";
  };

  buildInputs = [
    emacs
  ];

  buildPhase = ''
    runHook preBuild
    emacs -L . --batch -f batch-byte-compile *.el
    runHook postBuild
  '';

  installPhase = ''
    runHook preInstall
    install -d $out/share/emacs/site-lisp
    install *.el *.elc $out/share/emacs/site-lisp
    runHook postInstall
  '';

  meta = {
    description = "Colorize patch emails in mu4e";
    homepage = "https://github.com/seanfarley/mu4e-patch";
    license = lib.licenses.gpl3Plus;
    maintainers = with lib.maintainers; [ leungbk ];
    platforms = emacs.meta.platforms;
  };
}