mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
36 lines
742 B
Nix
36 lines
742 B
Nix
/*
|
|
|
|
# Updating
|
|
|
|
To update the list of packages from nongnu (ELPA),
|
|
|
|
1. Run `./update-nongnu`.
|
|
2. Check for evaluation errors: `nix-instantiate ../../../../.. -A emacs.pkgs.nongnuPackages`.
|
|
3. Run `git commit -m "org-packages $(date -Idate)" -- nongnu-generated.nix`
|
|
|
|
*/
|
|
|
|
{ lib, buildPackages }:
|
|
|
|
self: let
|
|
|
|
generateNongnu = lib.makeOverridable ({
|
|
generated ? ./nongnu-generated.nix
|
|
}: let
|
|
|
|
imported = import generated {
|
|
callPackage = pkgs: args: self.callPackage pkgs (args // {
|
|
# Use custom elpa url fetcher with fallback/uncompress
|
|
fetchurl = buildPackages.callPackage ./fetchelpa.nix { };
|
|
});
|
|
};
|
|
|
|
super = imported;
|
|
|
|
overrides = {
|
|
};
|
|
|
|
in super // overrides);
|
|
|
|
in generateNongnu { }
|