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

let version = "1.5.0";

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

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

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