forked from mirrors/nixpkgs
ce433f2a5f
This is just extracted from the erlang derivation. Otherwise one needs to know where the emacs mode is (and the path depends on the version of Erlang used)
26 lines
556 B
Nix
26 lines
556 B
Nix
{ 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 = {
|
|
homepage = "http://github.com/erlang/otp";
|
|
description = "Erlang mode for Emacs";
|
|
licence = stdenv.lib.licenses.asl20;
|
|
platforms = stdenv.lib.platforms.unix;
|
|
maintainers = [ "Samuel Rivas <samuelrivas@gmail.com>" ];
|
|
};
|
|
}
|