diff options
author | Mathijs Kwik <mathijs@bluescreen303.nl> | 2012-08-10 08:22:43 +0200 |
---|---|---|
committer | Mathijs Kwik <mathijs@bluescreen303.nl> | 2012-08-10 08:27:09 +0200 |
commit | c0a455b370d7134ad4d3862eef9a578a011642af (patch) | |
tree | 4dc0ee9db888fc7a9cf0890e07598b98204dc0d5 /pkgs/applications/editors/emacs-modes/auto-complete | |
parent | 260650e7e29c959ea38458ac38519bbd043f45bf (diff) | |
download | nixlib-c0a455b370d7134ad4d3862eef9a578a011642af.tar nixlib-c0a455b370d7134ad4d3862eef9a578a011642af.tar.gz nixlib-c0a455b370d7134ad4d3862eef9a578a011642af.tar.bz2 nixlib-c0a455b370d7134ad4d3862eef9a578a011642af.tar.lz nixlib-c0a455b370d7134ad4d3862eef9a578a011642af.tar.xz nixlib-c0a455b370d7134ad4d3862eef9a578a011642af.tar.zst nixlib-c0a455b370d7134ad4d3862eef9a578a011642af.zip |
emacs: add "auto-complete" mode
Diffstat (limited to 'pkgs/applications/editors/emacs-modes/auto-complete')
-rw-r--r-- | pkgs/applications/editors/emacs-modes/auto-complete/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/applications/editors/emacs-modes/auto-complete/default.nix b/pkgs/applications/editors/emacs-modes/auto-complete/default.nix new file mode 100644 index 000000000000..75f484d295b5 --- /dev/null +++ b/pkgs/applications/editors/emacs-modes/auto-complete/default.nix @@ -0,0 +1,30 @@ +{ stdenv, fetchurl, emacs }: + +stdenv.mkDerivation rec { + name = "auto-complete-1.3.1"; + + src = fetchurl { + url = "http://cx4a.org/pub/auto-complete/${name}.tar.bz2"; + sha256 = "124qxfp0pcphwlmrasbfrci48brxnrzc38h4wcf2sn20x1mvcrlj"; + }; + + buildInputs = [ emacs ]; + + preInstall = '' + install -d $out/share/emacs/site-lisp + ''; + + installFlags = "DIR=$(out)/share/emacs/site-lisp"; + + postInstall = '' + ln -s javascript-mode $out/share/emacs/site-lisp/ac-dict/js2-mode + ''; + + meta = { + description = "Auto-complete extension for Emacs"; + homepage = http://cx4a.org/software/auto-complete/; + license = "GPLv3+"; + + platforms = stdenv.lib.platforms.all; + }; +} |