2015-02-09 00:29:48 +00:00
|
|
|
# package.el-based emacs packages
|
2015-05-24 14:08:07 +00:00
|
|
|
|
|
|
|
## FOR USERS
|
2014-01-20 23:57:04 +00:00
|
|
|
#
|
2015-12-17 12:56:28 +00:00
|
|
|
# Recommended: simply use `emacsWithPackages` with the packages you want.
|
2014-01-20 23:57:04 +00:00
|
|
|
#
|
2015-12-17 12:56:28 +00:00
|
|
|
# Alterative: use `emacs`, install everything to a system or user profile
|
|
|
|
# and then add this at the start your `init.el`:
|
2015-05-24 14:08:07 +00:00
|
|
|
/*
|
|
|
|
(require 'package)
|
|
|
|
|
|
|
|
;; optional. makes unpure packages archives unavailable
|
|
|
|
(setq package-archives nil)
|
|
|
|
|
|
|
|
;; optional. use this if you install emacs packages to the system profile
|
|
|
|
(add-to-list 'package-directory-list "/run/current-system/sw/share/emacs/site-lisp/elpa")
|
|
|
|
|
|
|
|
;; optional. use this if you install emacs packages to user profiles (with nix-env)
|
|
|
|
(add-to-list 'package-directory-list "~/.nix-profile/share/emacs/site-lisp/elpa")
|
|
|
|
|
|
|
|
(package-initialize)
|
|
|
|
*/
|
|
|
|
|
|
|
|
## FOR CONTRIBUTORS
|
2014-01-20 23:57:04 +00:00
|
|
|
#
|
2015-05-24 14:08:07 +00:00
|
|
|
# When adding a new package here please note that
|
2016-01-16 17:06:48 +00:00
|
|
|
# * please use `elpaBuild` for pre-built package.el packages and
|
|
|
|
# `melpaBuild` or `trivialBuild` if the package must actually
|
|
|
|
# be built from the source.
|
2015-05-24 14:08:07 +00:00
|
|
|
# * lib.licenses are `with`ed on top of the file here
|
|
|
|
# * both trivialBuild and melpaBuild will automatically derive a
|
|
|
|
# `meta` with `platforms` and `homepage` set to something you are
|
|
|
|
# unlikely to want to override for most packages
|
2015-02-09 00:29:48 +00:00
|
|
|
|
2014-01-20 23:57:04 +00:00
|
|
|
{ overrides
|
2015-02-09 00:29:48 +00:00
|
|
|
|
2016-05-12 20:15:40 +00:00
|
|
|
, lib, newScope, stdenv, fetchurl, fetchgit, fetchFromGitHub, fetchhg, runCommand
|
2014-01-20 23:57:04 +00:00
|
|
|
|
2016-01-20 18:53:11 +00:00
|
|
|
, emacs, texinfo, lndir, makeWrapper
|
2014-01-20 23:57:04 +00:00
|
|
|
, trivialBuild
|
|
|
|
, melpaBuild
|
|
|
|
|
|
|
|
, external
|
|
|
|
}@args:
|
|
|
|
|
2015-03-09 16:19:36 +00:00
|
|
|
with lib.licenses;
|
2014-01-20 23:57:04 +00:00
|
|
|
|
2015-12-15 17:57:51 +00:00
|
|
|
let
|
|
|
|
|
2015-12-17 02:43:43 +00:00
|
|
|
elpaPackages = import ../applications/editors/emacs-modes/elpa-packages.nix {
|
|
|
|
inherit fetchurl lib stdenv texinfo;
|
|
|
|
};
|
|
|
|
|
|
|
|
melpaStablePackages = import ../applications/editors/emacs-modes/melpa-stable-packages.nix {
|
|
|
|
inherit lib;
|
|
|
|
};
|
|
|
|
|
|
|
|
melpaPackages = import ../applications/editors/emacs-modes/melpa-packages.nix {
|
2017-02-10 18:51:22 +00:00
|
|
|
inherit external lib;
|
2015-12-17 02:43:43 +00:00
|
|
|
};
|
|
|
|
|
2016-05-07 22:50:58 +00:00
|
|
|
orgPackages = import ../applications/editors/emacs-modes/org-packages.nix {
|
|
|
|
inherit fetchurl lib stdenv texinfo;
|
|
|
|
};
|
|
|
|
|
2016-08-19 20:09:41 +00:00
|
|
|
emacsWithPackages = import ../build-support/emacs/wrapper.nix {
|
2016-05-12 20:15:40 +00:00
|
|
|
inherit lib lndir makeWrapper stdenv runCommand;
|
2015-12-17 02:53:12 +00:00
|
|
|
};
|
|
|
|
|
2015-12-16 18:45:57 +00:00
|
|
|
packagesFun = self: with self; {
|
2014-01-20 23:57:04 +00:00
|
|
|
|
2015-12-07 12:28:56 +00:00
|
|
|
inherit emacs melpaBuild trivialBuild;
|
2015-04-02 11:44:58 +00:00
|
|
|
|
2016-08-19 20:09:41 +00:00
|
|
|
emacsWithPackages = emacsWithPackages self;
|
2015-12-17 02:53:12 +00:00
|
|
|
|
2014-01-20 23:57:04 +00:00
|
|
|
## START HERE
|
2015-02-09 00:29:48 +00:00
|
|
|
|
2015-11-23 14:54:17 +00:00
|
|
|
tablist = melpaBuild rec {
|
|
|
|
pname = "tablist";
|
|
|
|
inherit (pdf-tools) src version;
|
|
|
|
fileSpecs = [ "lisp/tablist.el" "lisp/tablist-filter.el" ];
|
|
|
|
meta = {
|
|
|
|
description = "Extended tabulated-list-mode";
|
|
|
|
license = gpl3;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-11-17 13:36:27 +00:00
|
|
|
pdf-tools = melpaBuild rec {
|
|
|
|
pname = "pdf-tools";
|
|
|
|
version = "0.70";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "politza";
|
|
|
|
repo = "pdf-tools";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "19sy49r3ijh36m7hl4vspw5c4i8pnfqdn4ldm2sqchxigkw56ayl";
|
|
|
|
};
|
2016-01-08 22:11:06 +00:00
|
|
|
buildInputs = with external; [ autoconf automake libpng zlib poppler pkgconfig ];
|
2015-11-17 13:36:27 +00:00
|
|
|
preBuild = "make server/epdfinfo";
|
|
|
|
fileSpecs = [ "lisp/pdf-*.el" "server/epdfinfo" ];
|
2016-01-08 22:11:06 +00:00
|
|
|
packageRequires = [ tablist let-alist ];
|
2015-11-17 13:36:27 +00:00
|
|
|
meta = {
|
|
|
|
description = "Emacs support library for PDF files";
|
|
|
|
license = gpl3;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-11-12 12:51:39 +00:00
|
|
|
elisp-ffi = melpaBuild rec {
|
2015-11-13 23:08:42 +00:00
|
|
|
pname = "elisp-ffi";
|
|
|
|
version = "1.0.0";
|
2015-11-12 12:51:39 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "skeeto";
|
|
|
|
repo = "elisp-ffi";
|
2015-11-13 23:08:42 +00:00
|
|
|
rev = "${version}";
|
|
|
|
sha256 = "0z2n3h5l5fj8wl8i1ilfzv11l3zba14sgph6gz7dx7q12cnp9j22";
|
2015-11-12 12:51:39 +00:00
|
|
|
};
|
|
|
|
buildInputs = [ external.libffi ];
|
|
|
|
preBuild = "make";
|
|
|
|
files = [ "ffi-glue" "ffi.el" ];
|
|
|
|
meta = {
|
|
|
|
description = "Emacs Lisp Foreign Function Interface";
|
|
|
|
longDescription = ''
|
|
|
|
This library provides an FFI for Emacs Lisp so that Emacs
|
|
|
|
programs can invoke functions in native libraries. It works by
|
|
|
|
driving a subprocess to do the heavy lifting, passing result
|
|
|
|
values on to Emacs.
|
|
|
|
'';
|
|
|
|
license = publicDomain;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2014-01-21 00:22:32 +00:00
|
|
|
agda2-mode = with external; trivialBuild {
|
|
|
|
pname = "agda-mode";
|
|
|
|
version = Agda.version;
|
|
|
|
|
|
|
|
phases = [ "buildPhase" "installPhase" ];
|
|
|
|
|
|
|
|
# already byte-compiled by Agda builder
|
|
|
|
buildPhase = ''
|
|
|
|
agda=`${Agda}/bin/agda-mode locate`
|
|
|
|
cp `dirname $agda`/*.el* .
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Agda2-mode for Emacs extracted from Agda package";
|
|
|
|
longDescription = ''
|
|
|
|
Wrapper packages that liberates init.el from `agda-mode locate` magic.
|
|
|
|
Simply add this to user profile or systemPackages and do `(require 'agda2)` in init.el.
|
|
|
|
'';
|
|
|
|
homepage = Agda.meta.homepage;
|
|
|
|
license = Agda.meta.license;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-09-25 13:06:58 +00:00
|
|
|
elpy = melpaBuild rec {
|
|
|
|
pname = "elpy";
|
2015-10-01 10:31:11 +00:00
|
|
|
version = external.elpy.version;
|
2015-09-25 13:06:58 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jorgenschaefer";
|
|
|
|
repo = pname;
|
|
|
|
rev = "39ea47c73f040ce8dcc1c2d2639ebc0eb57ab8c8";
|
|
|
|
sha256 = "0q3av1qv4m6aj4bil608f688hjpr5px8zqnnrdqx784nz98rpjrs";
|
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
for file in elpy.el elpy-pkg.el; do
|
|
|
|
substituteInPlace $file \
|
|
|
|
--replace "company \"0.8.2\"" "company \"${company.version}\"" \
|
|
|
|
--replace "find-file-in-project \"3.3\"" "find-file-in-project \"${find-file-in-project.version}\"" \
|
|
|
|
--replace "highlight-indentation \"0.5.0\"" "highlight-indentation \"${highlight-indentation.version}\"" \
|
|
|
|
--replace "pyvenv \"1.3\"" "pyvenv \"${pyvenv.version}\"" \
|
|
|
|
--replace "yasnippet \"0.8.0\"" "yasnippet \"${yasnippet.version}\""
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
packageRequires = [
|
|
|
|
company find-file-in-project highlight-indentation pyvenv yasnippet
|
|
|
|
];
|
|
|
|
|
2015-10-01 10:31:11 +00:00
|
|
|
propagatedUserEnvPkgs = [ external.elpy ] ++ packageRequires;
|
|
|
|
|
2015-09-25 13:06:58 +00:00
|
|
|
meta = {
|
|
|
|
description = "Emacs Python Development Environment";
|
|
|
|
longDescription = ''
|
|
|
|
Elpy is an Emacs package to bring powerful Python editing to Emacs.
|
|
|
|
It combines a number of other packages, both written in Emacs Lisp as
|
|
|
|
well as Python.
|
|
|
|
'';
|
|
|
|
license = gpl3Plus;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-01-07 13:23:04 +00:00
|
|
|
evil-jumper = melpaBuild rec {
|
|
|
|
pname = "evil-jumper";
|
|
|
|
version = "20151017";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bling";
|
|
|
|
repo = pname;
|
|
|
|
rev = "fcadf2d93aaea3ba88a2ae63a860b9c1f0568167";
|
|
|
|
sha256 = "0axx6cc9z9c1wh7qgm6ya54dsp3bn82bnb0cwj1rpv509qqmwgsj";
|
|
|
|
};
|
|
|
|
packageRequires = [ evil ];
|
|
|
|
meta = {
|
|
|
|
description = "Jump across buffer boundaries and revive dead buffers if necessary";
|
|
|
|
license = gpl3Plus;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-09-25 13:06:07 +00:00
|
|
|
find-file-in-project = melpaBuild rec {
|
|
|
|
pname = "find-file-in-project";
|
|
|
|
version = "3.5";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "technomancy";
|
|
|
|
repo = pname;
|
|
|
|
rev = "53a8d8174f915d9dcf5ac6954b1c0cae61266177";
|
|
|
|
sha256 = "0wky8vqg08iw34prbz04bqmhfhj82y93swb8zkz6la2vf9da0gmd";
|
|
|
|
};
|
|
|
|
meta = {
|
|
|
|
description = "Quick access to project files in Emacs";
|
|
|
|
longDescription = ''
|
|
|
|
Find files in a project quickly.
|
|
|
|
This program provides a couple methods for quickly finding any file in a
|
|
|
|
given project. It depends on GNU find.
|
|
|
|
'';
|
|
|
|
license = gpl3Plus;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-02-17 23:06:27 +00:00
|
|
|
ghc-mod = melpaBuild rec {
|
2015-02-09 00:29:48 +00:00
|
|
|
pname = "ghc";
|
|
|
|
version = external.ghc-mod.version;
|
|
|
|
src = external.ghc-mod.src;
|
2015-08-16 17:25:46 +00:00
|
|
|
packageRequires = [ haskell-mode ];
|
2015-03-24 22:54:31 +00:00
|
|
|
propagatedUserEnvPkgs = [ external.ghc-mod ];
|
2015-02-09 00:29:48 +00:00
|
|
|
fileSpecs = [ "elisp/*.el" ];
|
2015-09-19 22:09:21 +00:00
|
|
|
meta = {
|
|
|
|
description = "An extension of haskell-mode that provides completion of symbols and documentation browsing";
|
|
|
|
license = bsd3;
|
|
|
|
};
|
2015-02-17 23:06:27 +00:00
|
|
|
};
|
2015-02-09 00:29:48 +00:00
|
|
|
|
2016-12-25 13:45:37 +00:00
|
|
|
haskell-unicode-input-method = melpaBuild rec {
|
|
|
|
pname = "emacs-haskell-unicode-input-method";
|
|
|
|
version = "20110905.2307";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "roelvandijk";
|
|
|
|
repo = "emacs-haskell-unicode-input-method";
|
|
|
|
rev = "d8d168148c187ed19350bb7a1a190217c2915a63";
|
|
|
|
sha256 = "09b7bg2s9aa4s8f2kdqs4xps3jxkq5wsvbi87ih8b6id38blhf78";
|
|
|
|
};
|
|
|
|
packageRequires = [];
|
|
|
|
meta = {
|
|
|
|
homepage = "https://melpa.org/#haskell-unicode-input-method/";
|
|
|
|
license = lib.licenses.free;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-02-01 18:56:44 +00:00
|
|
|
hindent = melpaBuild rec {
|
|
|
|
pname = "hindent";
|
|
|
|
version = external.hindent.version;
|
|
|
|
src = external.hindent.src;
|
|
|
|
packageRequires = [ haskell-mode ];
|
|
|
|
propagatedUserEnvPkgs = [ external.hindent ];
|
|
|
|
fileSpecs = [ "elisp/*.el" ];
|
|
|
|
meta = {
|
|
|
|
description = "Indent haskell code using the \"hindent\" program";
|
|
|
|
license = bsd3;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-10-17 03:54:15 +00:00
|
|
|
rtags = melpaBuild rec {
|
|
|
|
pname = "rtags";
|
|
|
|
version = "2.0"; # really, it's some arbitrary git hash
|
|
|
|
src = external.rtags.src;
|
|
|
|
propagatedUserEnvPkgs = [ external.rtags ];
|
|
|
|
fileSpecs = [ "src/*.el" ];
|
|
|
|
inherit (external.rtags) meta;
|
2015-02-17 23:06:27 +00:00
|
|
|
};
|
2015-02-09 00:29:48 +00:00
|
|
|
|
2015-02-17 23:06:27 +00:00
|
|
|
lcs = melpaBuild rec {
|
2015-02-09 00:29:48 +00:00
|
|
|
pname = "lcs";
|
2015-12-14 21:22:15 +00:00
|
|
|
version = circe.version;
|
|
|
|
src = circe.src;
|
|
|
|
fileSpecs = [ "lcs.el" ];
|
2015-09-19 22:09:21 +00:00
|
|
|
meta = {
|
|
|
|
description = "Longest Common Sequence (LCS) library for Emacs";
|
|
|
|
license = gpl3Plus;
|
|
|
|
};
|
2015-02-17 23:06:27 +00:00
|
|
|
};
|
2015-02-09 00:29:48 +00:00
|
|
|
|
2015-02-17 23:06:27 +00:00
|
|
|
lui = melpaBuild rec {
|
2015-02-09 00:29:48 +00:00
|
|
|
pname = "lui";
|
2015-12-14 21:22:15 +00:00
|
|
|
version = circe.version;
|
|
|
|
src = circe.src;
|
2015-02-09 00:29:48 +00:00
|
|
|
packageRequires = [ tracking ];
|
2015-12-14 21:22:15 +00:00
|
|
|
fileSpecs = [ "lui*.el" ];
|
2015-09-19 22:09:21 +00:00
|
|
|
meta = {
|
|
|
|
description = "User interface library for Emacs";
|
|
|
|
license = gpl3Plus;
|
|
|
|
};
|
2015-02-17 23:06:27 +00:00
|
|
|
};
|
2015-02-09 00:29:48 +00:00
|
|
|
|
2015-05-24 14:06:12 +00:00
|
|
|
nyan-mode = callPackage ../applications/editors/emacs-modes/nyan-mode {
|
|
|
|
inherit lib;
|
|
|
|
};
|
2014-01-21 00:12:55 +00:00
|
|
|
|
2015-12-14 21:22:15 +00:00
|
|
|
shorten = melpaBuild rec {
|
|
|
|
pname = "shorten";
|
|
|
|
version = circe.version;
|
|
|
|
src = circe.src;
|
|
|
|
fileSpecs = [ "shorten.el" ];
|
2015-09-19 22:09:21 +00:00
|
|
|
meta = {
|
|
|
|
description = "String shortening to unique prefix library for Emacs";
|
|
|
|
license = gpl3Plus;
|
|
|
|
};
|
2015-02-17 23:06:27 +00:00
|
|
|
};
|
2015-02-09 00:29:48 +00:00
|
|
|
|
2015-02-17 23:06:27 +00:00
|
|
|
structured-haskell-mode = melpaBuild rec {
|
2015-02-09 00:29:48 +00:00
|
|
|
pname = "shm";
|
|
|
|
version = external.structured-haskell-mode.version;
|
|
|
|
src = external.structured-haskell-mode.src;
|
|
|
|
packageRequires = [ haskell-mode ];
|
|
|
|
fileSpecs = [ "elisp/*.el" ];
|
2016-06-07 03:23:39 +00:00
|
|
|
propagatedUserEnvPkgs = [ external.structured-haskell-mode ];
|
2015-02-17 23:06:27 +00:00
|
|
|
|
2015-02-09 00:29:48 +00:00
|
|
|
meta = {
|
|
|
|
description = "Structured editing Emacs mode for Haskell";
|
2015-02-17 23:06:27 +00:00
|
|
|
license = bsd3;
|
|
|
|
platforms = external.structured-haskell-mode.meta.platforms;
|
2015-02-09 00:29:48 +00:00
|
|
|
};
|
2015-02-17 23:06:27 +00:00
|
|
|
};
|
2015-02-09 00:29:48 +00:00
|
|
|
|
2016-09-14 19:32:29 +00:00
|
|
|
tramp = callPackage ../applications/editors/emacs-modes/tramp { };
|
|
|
|
|
2015-02-17 23:06:27 +00:00
|
|
|
weechat = melpaBuild rec {
|
2015-02-09 00:29:48 +00:00
|
|
|
pname = "weechat.el";
|
2015-04-03 17:35:45 +00:00
|
|
|
version = "0.2.2";
|
2015-02-09 00:29:48 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "the-kenny";
|
2015-02-17 23:06:27 +00:00
|
|
|
repo = pname;
|
2015-04-03 17:35:45 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "0f90m2s40jish4wjwfpmbgw024r7n2l5b9q9wr6rd3vdcwks3mcl";
|
2015-02-09 00:29:48 +00:00
|
|
|
};
|
2014-01-20 23:57:04 +00:00
|
|
|
postPatch = lib.optionalString (!stdenv.isLinux) ''
|
2015-02-09 00:29:48 +00:00
|
|
|
rm weechat-sauron.el weechat-secrets.el
|
|
|
|
'';
|
|
|
|
packageRequires = [ s ];
|
2015-09-19 22:09:21 +00:00
|
|
|
meta = {
|
|
|
|
description = "A weechat IRC client frontend for Emacs";
|
|
|
|
license = gpl3Plus;
|
|
|
|
};
|
2015-02-17 23:06:27 +00:00
|
|
|
};
|
2015-02-09 00:29:48 +00:00
|
|
|
|
2015-12-15 17:57:51 +00:00
|
|
|
};
|
2015-12-06 19:17:41 +00:00
|
|
|
|
2015-12-15 17:57:51 +00:00
|
|
|
in
|
2015-12-16 18:45:57 +00:00
|
|
|
lib.makeScope newScope (self:
|
|
|
|
{}
|
|
|
|
// melpaPackages self
|
|
|
|
// elpaPackages self
|
2016-01-15 22:15:26 +00:00
|
|
|
// melpaStablePackages self
|
2016-05-07 22:50:58 +00:00
|
|
|
// orgPackages self
|
2015-12-16 18:45:57 +00:00
|
|
|
// packagesFun self
|
|
|
|
)
|