3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/editors/emacs-modes/erlang/default.nix
Samuel Rivas ce433f2a5f emacs-mode: initial (same version as erlang)
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)
2015-09-07 22:32:26 +02:00

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>" ];
};
}