5 To update the list of packages from ELPA,
7 1. Run `./update-elpa-devel`.
8 2. Check for evaluation errors:
9 # "../../../../../" points to the default.nix from root of Nixpkgs tree
10 env NIXPKGS_ALLOW_BROKEN=1 nix-instantiate ../../../../../ -A emacs.pkgs.elpaDevelPackages
11 3. Run `git commit -m "elpa-devel-packages $(date -Idate)" -- elpa-devel-generated.nix`
13 ## Update from overlay
15 Alternatively, run the following command:
19 It will update both melpa and elpa packages using
20 https://github.com/nix-community/emacs-overlay. It's almost instantenous and
21 formats commits for you.
25 { lib, pkgs, buildPackages }:
29 inherit (import ./lib-override-helper.nix pkgs lib)
33 # Use custom elpa url fetcher with fallback/uncompress
34 fetchurl = buildPackages.callPackage ./fetchelpa.nix { };
36 generateElpa = lib.makeOverridable ({
37 generated ? ./elpa-devel-generated.nix
40 imported = import generated {
41 callPackage = pkgs: args: self.callPackage pkgs (args // {
48 commonOverrides = import ./elpa-common-overrides.nix pkgs lib buildPackages;
50 overrides = self: super: {
54 let super' = super // (commonOverrides self super); in super' // (overrides self super');
56 in elpaDevelPackages);