2016-05-07 22:50:58 +00:00
|
|
|
/*
|
|
|
|
|
|
|
|
# Updating
|
|
|
|
|
2019-08-18 09:58:17 +00:00
|
|
|
To update the list of packages from Org (ELPA),
|
2016-05-07 22:50:58 +00:00
|
|
|
|
2019-08-18 09:58:17 +00:00
|
|
|
1. Run `./update-org`.
|
2021-09-06 19:45:27 +00:00
|
|
|
2. Check for evaluation errors:
|
|
|
|
env NIXPKGS_ALLOW_BROKEN=1 nix-instantiate ../../../../.. -A emacs.pkgs.orgPackages
|
2021-05-20 23:03:41 +00:00
|
|
|
3. Run `git commit -m "org-packages $(date -Idate)" -- org-generated.nix`
|
2016-05-07 22:50:58 +00:00
|
|
|
|
|
|
|
*/
|
|
|
|
|
2019-08-18 09:58:17 +00:00
|
|
|
{ lib }:
|
2016-05-07 22:50:58 +00:00
|
|
|
|
2019-08-18 09:58:17 +00:00
|
|
|
self: let
|
2016-05-07 22:50:58 +00:00
|
|
|
|
2019-08-18 09:58:17 +00:00
|
|
|
generateOrg = lib.makeOverridable ({
|
|
|
|
generated ? ./org-generated.nix
|
|
|
|
}: let
|
2016-05-07 22:50:58 +00:00
|
|
|
|
2019-08-18 09:58:17 +00:00
|
|
|
imported = import generated {
|
2016-05-07 22:50:58 +00:00
|
|
|
inherit (self) callPackage;
|
|
|
|
};
|
|
|
|
|
|
|
|
super = imported;
|
|
|
|
|
|
|
|
overrides = {
|
|
|
|
};
|
|
|
|
|
2019-08-18 09:58:17 +00:00
|
|
|
in super // overrides);
|
2016-05-07 22:50:58 +00:00
|
|
|
|
2019-08-18 09:58:17 +00:00
|
|
|
in generateOrg { }
|