2015-02-09 00:29:48 +00:00
|
|
|
# package.el-based emacs packages
|
2015-05-24 15:08:07 +01: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 15:08:07 +01: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 15:08:07 +01: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 15:08:07 +01: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
|
|
|
|
2019-06-16 20:59:06 +01:00
|
|
|
{ lib, newScope, stdenv, fetchurl, fetchFromGitHub, runCommand, writeText
|
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
|
2019-08-04 17:55:15 +01:00
|
|
|
, pkgs
|
2018-07-20 20:54:05 +01:00
|
|
|
}:
|
2014-01-20 23:57:04 +00:00
|
|
|
|
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 {
|
2019-06-16 20:59:06 +01:00
|
|
|
inherit lib stdenv texinfo;
|
2015-12-17 02:43:43 +00:00
|
|
|
};
|
|
|
|
|
2019-08-03 20:48:11 +01:00
|
|
|
# Contains both melpa stable & unstable
|
|
|
|
melpaGeneric = import ../applications/editors/emacs-modes/melpa-packages.nix {
|
2019-08-04 17:55:15 +01:00
|
|
|
inherit external lib pkgs;
|
2015-12-17 02:43:43 +00:00
|
|
|
};
|
|
|
|
|
2019-08-03 20:48:11 +01:00
|
|
|
melpaStablePackages = self: let
|
|
|
|
m = melpaGeneric "stable" self;
|
|
|
|
in {melpaStablePackages = m;} // m;
|
|
|
|
|
|
|
|
melpaPackages = self: let
|
|
|
|
m = melpaGeneric "unstable" self;
|
|
|
|
in {melpaPackages = m;} // m;
|
2015-12-17 02:43:43 +00:00
|
|
|
|
2018-07-21 01:44:44 +01:00
|
|
|
orgPackages = import ../applications/editors/emacs-modes/org-packages.nix { };
|
2016-05-07 23:50:58 +01:00
|
|
|
|
2016-08-19 21:09:41 +01:00
|
|
|
emacsWithPackages = import ../build-support/emacs/wrapper.nix {
|
2016-05-12 21:15:40 +01: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
|
|
|
|
2019-08-03 22:55:20 +01:00
|
|
|
inherit emacs melpaBuild trivialBuild;
|
|
|
|
|
|
|
|
emacsWithPackages = emacsWithPackages self;
|
|
|
|
|
|
|
|
## START HERE
|
|
|
|
|
|
|
|
elisp-ffi = melpaBuild rec {
|
|
|
|
pname = "elisp-ffi";
|
|
|
|
version = "1.0.0";
|
|
|
|
src = fetchFromGitHub {
|
2015-11-12 12:51:39 +00:00
|
|
|
owner = "skeeto";
|
|
|
|
repo = "elisp-ffi";
|
2015-11-13 23:08:42 +00:00
|
|
|
rev = "${version}";
|
|
|
|
sha256 = "0z2n3h5l5fj8wl8i1ilfzv11l3zba14sgph6gz7dx7q12cnp9j22";
|
2019-08-03 22:55:20 +01:00
|
|
|
};
|
|
|
|
buildInputs = [ external.libffi ];
|
|
|
|
preBuild = "make";
|
|
|
|
recipe = writeText "recipe" ''
|
|
|
|
(elisp-ffi
|
|
|
|
:repo "skeeto/elisp-ffi"
|
|
|
|
:fetcher github
|
|
|
|
:files ("ffi-glue" "ffi.el"))
|
2015-11-12 12:51:39 +00:00
|
|
|
'';
|
2019-08-03 22:55:20 +01:00
|
|
|
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;
|
|
|
|
};
|
2015-11-12 12:51:39 +00:00
|
|
|
};
|
|
|
|
|
2019-08-03 22:55:20 +01:00
|
|
|
agda2-mode = with external; trivialBuild {
|
|
|
|
pname = "agda-mode";
|
|
|
|
version = Agda.version;
|
2014-01-21 00:22:32 +00:00
|
|
|
|
2019-08-03 22:55:20 +01:00
|
|
|
phases = [ "buildPhase" "installPhase" ];
|
2014-01-21 00:22:32 +00:00
|
|
|
|
2019-08-03 22:55:20 +01:00
|
|
|
# already byte-compiled by Agda builder
|
|
|
|
buildPhase = ''
|
|
|
|
agda=`${Agda}/bin/agda-mode locate`
|
|
|
|
cp `dirname $agda`/*.el* .
|
2014-01-21 00:22:32 +00:00
|
|
|
'';
|
|
|
|
|
2019-08-03 22:55:20 +01:00
|
|
|
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;
|
|
|
|
};
|
2019-01-13 08:29:41 +00:00
|
|
|
};
|
|
|
|
|
2019-08-03 22:55:20 +01:00
|
|
|
ess-R-object-popup =
|
|
|
|
callPackage ../applications/editors/emacs-modes/ess-R-object-popup { };
|
2017-11-13 00:43:35 +00:00
|
|
|
|
2019-08-03 22:55:20 +01:00
|
|
|
filesets-plus = callPackage ../applications/editors/emacs-modes/filesets-plus { };
|
2017-11-13 00:43:35 +00:00
|
|
|
|
2019-08-03 22:55:20 +01:00
|
|
|
font-lock-plus = callPackage ../applications/editors/emacs-modes/font-lock-plus { };
|
2017-11-13 00:43:35 +00:00
|
|
|
|
2019-08-03 22:55:20 +01:00
|
|
|
ghc-mod = melpaBuild rec {
|
|
|
|
pname = "ghc";
|
|
|
|
version = external.ghc-mod.version;
|
|
|
|
src = external.ghc-mod.src;
|
|
|
|
packageRequires = [ haskell-mode ];
|
|
|
|
propagatedUserEnvPkgs = [ external.ghc-mod ];
|
|
|
|
recipe = writeText "recipe" ''
|
|
|
|
(ghc-mod :repo "DanielG/ghc-mod" :fetcher github :files ("elisp/*.el"))
|
|
|
|
'';
|
|
|
|
fileSpecs = [ "elisp/*.el" ];
|
|
|
|
meta = {
|
|
|
|
description = "An extension of haskell-mode that provides completion of symbols and documentation browsing";
|
|
|
|
license = bsd3;
|
|
|
|
};
|
2019-06-09 03:51:56 +01:00
|
|
|
};
|
2019-08-03 22:55:20 +01: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";
|
|
|
|
};
|
|
|
|
recipe = writeText "recipe" ''
|
|
|
|
(haskell-unicode-input-method
|
|
|
|
:repo "roelvandijk/emacs-haskell-unicode-input-method"
|
|
|
|
:fetcher github)
|
|
|
|
'';
|
|
|
|
packageRequires = [];
|
|
|
|
meta = {
|
|
|
|
homepage = "https://melpa.org/#haskell-unicode-input-method/";
|
|
|
|
license = lib.licenses.free;
|
|
|
|
};
|
2019-06-09 03:51:56 +01:00
|
|
|
};
|
|
|
|
|
2019-08-03 22:55:20 +01:00
|
|
|
hexrgb = callPackage ../applications/editors/emacs-modes/hexrgb { };
|
|
|
|
|
|
|
|
header2 = callPackage ../applications/editors/emacs-modes/header2 { };
|
|
|
|
|
|
|
|
helm-words = callPackage ../applications/editors/emacs-modes/helm-words { };
|
|
|
|
|
|
|
|
icicles = callPackage ../applications/editors/emacs-modes/icicles { };
|
|
|
|
|
|
|
|
rtags = melpaBuild rec {
|
2019-08-04 20:57:42 +01:00
|
|
|
inherit (external.rtags) version src meta;
|
|
|
|
|
2019-08-03 22:55:20 +01:00
|
|
|
pname = "rtags";
|
2017-09-01 14:57:05 +01:00
|
|
|
|
2019-08-03 22:55:20 +01:00
|
|
|
dontConfigure = true;
|
2015-02-09 00:29:48 +00:00
|
|
|
|
2019-08-03 22:55:20 +01:00
|
|
|
propagatedUserEnvPkgs = [ external.rtags ];
|
|
|
|
recipe = writeText "recipe" ''
|
|
|
|
(rtags
|
|
|
|
:repo "andersbakken/rtags" :fetcher github
|
|
|
|
:files ("src/*.el"))
|
|
|
|
'';
|
2015-09-19 23:09:21 +01:00
|
|
|
};
|
2015-02-09 00:29:48 +00:00
|
|
|
|
2019-08-03 22:55:20 +01:00
|
|
|
lib-requires =
|
|
|
|
callPackage ../applications/editors/emacs-modes/lib-requires { };
|
2016-10-14 17:35:18 +01:00
|
|
|
|
2019-08-03 22:55:20 +01:00
|
|
|
org-mac-link =
|
|
|
|
callPackage ../applications/editors/emacs-modes/org-mac-link { };
|
2017-11-13 00:43:35 +00:00
|
|
|
|
2019-08-03 22:55:20 +01:00
|
|
|
perl-completion =
|
|
|
|
callPackage ../applications/editors/emacs-modes/perl-completion { };
|
2016-09-14 20:32:29 +01:00
|
|
|
|
2019-08-03 22:55:20 +01:00
|
|
|
railgun = callPackage ../applications/editors/emacs-modes/railgun { };
|
2017-11-13 00:43:35 +00:00
|
|
|
|
2019-08-03 22:55:20 +01:00
|
|
|
gn = callPackage ../applications/editors/emacs-modes/gn { };
|
2017-11-13 00:43:35 +00:00
|
|
|
|
2019-08-03 22:55:20 +01:00
|
|
|
structured-haskell-mode = self.shm;
|
|
|
|
|
|
|
|
thingatpt-plus = callPackage ../applications/editors/emacs-modes/thingatpt-plus { };
|
|
|
|
|
|
|
|
tramp = callPackage ../applications/editors/emacs-modes/tramp { };
|
|
|
|
|
|
|
|
yaoddmuse = callPackage ../applications/editors/emacs-modes/yaoddmuse { };
|
|
|
|
|
|
|
|
zeitgeist = callPackage ../applications/editors/emacs-modes/zeitgeist { };
|
|
|
|
|
2015-12-15 17:57:51 +00:00
|
|
|
};
|
2015-12-06 19:17:41 +00:00
|
|
|
|
2019-08-03 20:48:11 +01:00
|
|
|
in lib.makeScope newScope (self:
|
|
|
|
removeAttrs ({}
|
|
|
|
// elpaPackages self
|
|
|
|
// melpaStablePackages self
|
|
|
|
// melpaPackages self
|
|
|
|
// orgPackages self
|
|
|
|
// packagesFun self) [ "override" "overrideDerivation" ]
|
|
|
|
)
|