2015-12-17 05:12:49 -08:00
|
|
|
/*
|
|
|
|
|
|
|
|
# Updating
|
|
|
|
|
2016-04-26 12:06:42 -07:00
|
|
|
To update the list of packages from MELPA,
|
2015-12-17 05:12:49 -08:00
|
|
|
|
2019-08-18 02:41:40 -07:00
|
|
|
1. Run `./update-elpa`.
|
|
|
|
2. Check for evaluation errors: `nix-instantiate ../../../.. -A emacsPackagesNg.elpaPackages`.
|
2019-08-18 02:47:42 -07:00
|
|
|
3. `git commit -m "elpa-packages $(date -Idate)" -- elpa-generated.nix`
|
2015-12-17 05:12:49 -08:00
|
|
|
|
|
|
|
*/
|
|
|
|
|
2019-06-16 12:59:06 -07:00
|
|
|
{ lib, stdenv, texinfo }:
|
2015-12-06 07:27:19 -08:00
|
|
|
|
2019-08-18 02:47:42 -07:00
|
|
|
self: let
|
2015-12-06 07:27:19 -08:00
|
|
|
|
2019-08-18 02:47:42 -07:00
|
|
|
markBroken = pkg: pkg.override {
|
|
|
|
elpaBuild = args: self.elpaBuild (args // {
|
|
|
|
meta = (args.meta or {}) // { broken = true; };
|
|
|
|
});
|
|
|
|
};
|
2016-01-14 19:52:31 -08:00
|
|
|
|
2019-08-18 02:47:42 -07:00
|
|
|
elpaBuild = import ../../../build-support/emacs/elpa.nix {
|
|
|
|
inherit lib stdenv texinfo;
|
|
|
|
inherit (self) emacs;
|
|
|
|
};
|
2016-01-14 19:52:31 -08:00
|
|
|
|
2019-08-18 02:47:42 -07:00
|
|
|
generateElpa = lib.makeOverridable ({
|
|
|
|
generated ? ./elpa-generated.nix
|
|
|
|
}: let
|
2015-12-15 09:57:51 -08:00
|
|
|
|
2019-08-18 02:47:42 -07:00
|
|
|
imported = import generated {
|
|
|
|
inherit (self) callPackage;
|
2015-12-15 09:57:51 -08:00
|
|
|
};
|
|
|
|
|
2019-08-18 02:47:42 -07:00
|
|
|
super = removeAttrs imported [ "dash" ];
|
2015-12-16 06:13:46 -08:00
|
|
|
|
2016-01-14 19:52:31 -08:00
|
|
|
overrides = {
|
2017-11-29 14:48:15 -08:00
|
|
|
# upstream issue: missing footer
|
|
|
|
ebdb-i18n-chn = markBroken super.ebdb-i18n-chn;
|
2016-03-21 13:36:39 -07:00
|
|
|
el-search = markBroken super.el-search; # requires emacs-25
|
|
|
|
iterators = markBroken super.iterators; # requires emacs-25
|
|
|
|
midi-kbd = markBroken super.midi-kbd; # requires emacs-25
|
2017-11-20 14:12:11 -08:00
|
|
|
rcirc-menu = markBroken super.rcirc-menu; # Missing file header
|
2016-03-21 13:36:39 -07:00
|
|
|
stream = markBroken super.stream; # requires emacs-25
|
|
|
|
cl-lib = null; # builtin
|
2016-04-26 12:09:33 -07:00
|
|
|
tle = null; # builtin
|
2019-04-08 01:26:33 -07:00
|
|
|
advice = null; # builtin
|
2015-12-16 06:13:46 -08:00
|
|
|
};
|
2016-01-14 19:52:31 -08:00
|
|
|
|
|
|
|
elpaPackages = super // overrides;
|
|
|
|
|
2019-08-18 02:47:42 -07:00
|
|
|
in elpaPackages // { inherit elpaBuild; });
|
|
|
|
|
|
|
|
in generateElpa { }
|