2021-06-14 02:53:49 +00:00
|
|
|
/*
|
|
|
|
|
|
|
|
# Updating
|
|
|
|
|
|
|
|
To update the list of packages from nongnu (ELPA),
|
|
|
|
|
|
|
|
1. Run `./update-nongnu`.
|
2021-09-06 19:45:27 +00:00
|
|
|
2. Check for evaluation errors:
|
2022-03-27 02:09:13 +00:00
|
|
|
# "../../../../../" points to the default.nix from root of Nixpkgs tree
|
|
|
|
env NIXPKGS_ALLOW_BROKEN=1 nix-instantiate ../../../../../ -A emacs.pkgs.nongnuPackages
|
2021-09-06 19:45:27 +00:00
|
|
|
3. Run `git commit -m "nongnu-packages $(date -Idate)" -- nongnu-generated.nix`
|
2021-06-14 02:53:49 +00:00
|
|
|
|
|
|
|
*/
|
|
|
|
|
2021-08-06 21:26:09 +00:00
|
|
|
{ lib, buildPackages }:
|
2021-06-14 02:53:49 +00:00
|
|
|
|
|
|
|
self: let
|
|
|
|
|
|
|
|
generateNongnu = lib.makeOverridable ({
|
|
|
|
generated ? ./nongnu-generated.nix
|
|
|
|
}: let
|
|
|
|
|
|
|
|
imported = import generated {
|
2021-08-06 21:26:09 +00:00
|
|
|
callPackage = pkgs: args: self.callPackage pkgs (args // {
|
|
|
|
# Use custom elpa url fetcher with fallback/uncompress
|
|
|
|
fetchurl = buildPackages.callPackage ./fetchelpa.nix { };
|
|
|
|
});
|
2021-06-14 02:53:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
super = imported;
|
|
|
|
|
|
|
|
overrides = {
|
|
|
|
};
|
|
|
|
|
|
|
|
in super // overrides);
|
|
|
|
|
|
|
|
in generateNongnu { }
|