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

stdenv.mkDerivation {

  name = "erlang-mode-${erlang.version}";

  buildInputs = [ ];

  inherit erlang;

  buildCommand = ''
    mkdir -p "$out/share/emacs/site-lisp"
    cp "$erlang/lib/erlang/lib/tools"*/emacs/*.el $out/share/emacs/site-lisp/
  '';

  # emacs highlighting */

  meta = with stdenv.lib; {
    homepage = http://github.com/erlang/otp;
    description = "Erlang mode for Emacs";
    license = licenses.asl20;
    platforms = platforms.unix;
    maintainers = [ maintainers.samuelrivas ];
  };
}