You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.5 KiB
67 lines
1.5 KiB
9 years ago
|
/*
|
||
|
|
||
|
# Updating
|
||
|
|
||
8 years ago
|
To update the list of packages from MELPA,
|
||
9 years ago
|
|
||
5 years ago
|
1. Run `./update-elpa`.
|
||
3 years ago
|
2. Check for evaluation errors:
|
||
|
`nix-instantiate ../../../../../ -A emacs.pkgs.elpaPackages`.
|
||
|
3. Run `git commit -m "elpa-packages $(date -Idate)" -- elpa-generated.nix`
|
||
9 years ago
|
|
||
4 years ago
|
## Update from overlay
|
||
|
|
||
|
Alternatively, run the following command:
|
||
|
|
||
|
./update-from-overlay
|
||
|
|
||
|
It will update both melpa and elpa packages using
|
||
3 years ago
|
https://github.com/nix-community/emacs-overlay. It's almost instantenous and
|
||
|
formats commits for you.
|
||
4 years ago
|
|
||
9 years ago
|
*/
|
||
|
|
||
3 years ago
|
{ lib, stdenv, texinfo, writeText }:
|
||
9 years ago
|
|
||
5 years ago
|
self: let
|
||
9 years ago
|
|
||
5 years ago
|
markBroken = pkg: pkg.override {
|
||
|
elpaBuild = args: self.elpaBuild (args // {
|
||
|
meta = (args.meta or {}) // { broken = true; };
|
||
|
});
|
||
|
};
|
||
9 years ago
|
|
||
3 years ago
|
elpaBuild = import ../../../../build-support/emacs/elpa.nix {
|
||
3 years ago
|
inherit lib stdenv texinfo writeText;
|
||
5 years ago
|
inherit (self) emacs;
|
||
|
};
|
||
9 years ago
|
|
||
5 years ago
|
generateElpa = lib.makeOverridable ({
|
||
|
generated ? ./elpa-generated.nix
|
||
|
}: let
|
||
9 years ago
|
|
||
5 years ago
|
imported = import generated {
|
||
|
inherit (self) callPackage;
|
||
9 years ago
|
};
|
||
|
|
||
5 years ago
|
super = removeAttrs imported [ "dash" ];
|
||
9 years ago
|
|
||
9 years ago
|
overrides = {
|
||
7 years ago
|
rcirc-menu = markBroken super.rcirc-menu; # Missing file header
|
||
8 years ago
|
cl-lib = null; # builtin
|
||
8 years ago
|
tle = null; # builtin
|
||
5 years ago
|
advice = null; # builtin
|
||
5 years ago
|
seq = if lib.versionAtLeast self.emacs.version "27"
|
||
|
then null
|
||
|
else super.seq;
|
||
3 years ago
|
project = if lib.versionAtLeast self.emacs.version "28"
|
||
|
then null
|
||
|
else super.project;
|
||
9 years ago
|
};
|
||
9 years ago
|
|
||
|
elpaPackages = super // overrides;
|
||
|
|
||
5 years ago
|
in elpaPackages // { inherit elpaBuild; });
|
||
|
|
||
|
in generateElpa { }
|