diff options
author | Samuel Rivas <samuelrivas@gmail.com> | 2015-09-07 21:48:06 +0200 |
---|---|---|
committer | Samuel Rivas <samuelrivas@gmail.com> | 2015-09-07 22:32:26 +0200 |
commit | ce433f2a5fcd328b436a30d669f27997b357fd07 (patch) | |
tree | 7262b51be5e71278602ea019d0d3495e06eb77e4 /pkgs/applications/editors/emacs-modes/erlang | |
parent | b5b78eaf44543badfd4bdff37c5cf4a7940ec859 (diff) |
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)
Diffstat (limited to 'pkgs/applications/editors/emacs-modes/erlang')
-rw-r--r-- | pkgs/applications/editors/emacs-modes/erlang/default.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/applications/editors/emacs-modes/erlang/default.nix b/pkgs/applications/editors/emacs-modes/erlang/default.nix new file mode 100644 index 0000000000000..b2d59ef37b04f --- /dev/null +++ b/pkgs/applications/editors/emacs-modes/erlang/default.nix @@ -0,0 +1,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 = { + 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>" ]; + }; +} |