summary refs log tree commit diff
path: root/pkgs/applications/editors/emacs-modes/dash/default.nix
blob: 09b03ccdba6407898f14d0a2949fdbc56fa252c8 (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
{stdenv, fetchurl, emacs}:

let
  version = "2.12.1";
in
stdenv.mkDerivation {
  name = "emacs-dash-${version}";

  src = fetchurl {
    url = "https://github.com/magnars/dash.el/archive/${version}.tar.gz";
    sha256 = "082jl7mp4x063bpj5ad2pc5125k0d6p7rb89gcj7ny3lma9h2ij1";
  };

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