2015-12-17 14:12:49 +01:00
|
|
|
/*
|
|
|
|
|
|
|
|
# Updating
|
|
|
|
|
2016-04-26 21:06:42 +02:00
|
|
|
To update the list of packages from MELPA,
|
2015-12-17 14:12:49 +01:00
|
|
|
|
2019-08-18 11:41:40 +02:00
|
|
|
1. Run `./update-elpa`.
|
|
|
|
2. Check for evaluation errors: `nix-instantiate ../../../.. -A emacsPackagesNg.elpaPackages`.
|
2019-08-18 11:47:42 +02:00
|
|
|
3. `git commit -m "elpa-packages $(date -Idate)" -- elpa-generated.nix`
|
2015-12-17 14:12:49 +01:00
|
|
|
|
2020-05-11 14:51:46 +02:00
|
|
|
## Update from overlay
|
|
|
|
|
|
|
|
Alternatively, run the following command:
|
|
|
|
|
|
|
|
./update-from-overlay
|
|
|
|
|
|
|
|
It will update both melpa and elpa packages using
|
|
|
|
https://github.com/nix-community/emacs-overlay. It's almost
|
|
|
|
instantenous and formats commits for you.
|
|
|
|
|
2015-12-17 14:12:49 +01:00
|
|
|
*/
|
|
|
|
|
2019-06-16 21:59:06 +02:00
|
|
|
{ lib, stdenv, texinfo }:
|
2015-12-06 16:27:19 +01:00
|
|
|
|
2019-08-18 11:47:42 +02:00
|
|
|
self: let
|
2015-12-06 16:27:19 +01:00
|
|
|
|
2019-08-18 11:47:42 +02:00
|
|
|
markBroken = pkg: pkg.override {
|
|
|
|
elpaBuild = args: self.elpaBuild (args // {
|
|
|
|
meta = (args.meta or {}) // { broken = true; };
|
|
|
|
});
|
|
|
|
};
|
2016-01-15 04:52:31 +01:00
|
|
|
|
2019-08-18 11:47:42 +02:00
|
|
|
elpaBuild = import ../../../build-support/emacs/elpa.nix {
|
|
|
|
inherit lib stdenv texinfo;
|
|
|
|
inherit (self) emacs;
|
|
|
|
};
|
2016-01-15 04:52:31 +01:00
|
|
|
|
2019-08-18 11:47:42 +02:00
|
|
|
generateElpa = lib.makeOverridable ({
|
|
|
|
generated ? ./elpa-generated.nix
|
|
|
|
}: let
|
2015-12-15 18:57:51 +01:00
|
|
|
|
2019-08-18 11:47:42 +02:00
|
|
|
imported = import generated {
|
|
|
|
inherit (self) callPackage;
|
2015-12-15 18:57:51 +01:00
|
|
|
};
|
|
|
|
|
2019-08-18 11:47:42 +02:00
|
|
|
super = removeAttrs imported [ "dash" ];
|
2015-12-16 15:13:46 +01:00
|
|
|
|
2016-01-15 04:52:31 +01:00
|
|
|
overrides = {
|
2017-11-20 23:12:11 +01:00
|
|
|
rcirc-menu = markBroken super.rcirc-menu; # Missing file header
|
2016-03-21 21:36:39 +01:00
|
|
|
cl-lib = null; # builtin
|
2016-04-26 21:09:33 +02:00
|
|
|
tle = null; # builtin
|
2019-04-08 10:26:33 +02:00
|
|
|
advice = null; # builtin
|
2019-12-03 21:04:08 +01:00
|
|
|
seq = if lib.versionAtLeast self.emacs.version "27"
|
|
|
|
then null
|
|
|
|
else super.seq;
|
2015-12-16 15:13:46 +01:00
|
|
|
};
|
2016-01-15 04:52:31 +01:00
|
|
|
|
|
|
|
elpaPackages = super // overrides;
|
|
|
|
|
2019-08-18 11:47:42 +02:00
|
|
|
in elpaPackages // { inherit elpaBuild; });
|
|
|
|
|
|
|
|
in generateElpa { }
|