about summary refs log tree commit diff
path: root/pkgs/applications/editors/emacs-modes/monky/default.nix
blob: 8e35a4e2b571cb5f9b01c0d9113550f5e0f647da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ stdenv, fetchurl, emacs, unzip }:

stdenv.mkDerivation {
  name = "emacs-monky-20150404";

  src = fetchurl {
    url = "https://github.com/ananthakumaran/monky/archive/48c0200910739b6521f26f6423b2bfb8c38b4482.zip";
    sha256 = "0yp3pzddx7yki9n3qrriqa5p442qyrdivvlc4xbl024vzjyzddrj";
  };

  buildInputs = [ emacs unzip ];

  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
  '';
}