summary refs log tree commit diff
path: root/pkgs/applications/editors/emacs-modes/markdown-mode/default.nix
blob: 7176b289b8b550fb6be1458c29e93bd466897c9e (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
{ stdenv, fetchFromGitHub, emacs }:

let
  version = "2.0-82-gfe30ef7";
in
stdenv.mkDerivation {
  name = "markdown-mode-${version}";

  src = fetchFromGitHub {
    owner  = "defunkt";
    repo   = "markdown-mode";
    rev    = "v${version}";
    sha256 = "14a6r05j0g2ppq2q4kd14qyxwr6yv5jwndavbwzkmp6qhmm9k8nz";
  };

  buildInputs = [ emacs ];

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

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

  meta.license = stdenv.lib.licenses.gpl3Plus;
}