···4747The first section of this file lists eggs which are required by `egg2nix`
4848itself; all other eggs go into the second section. After editing, follow the
4949procedure for updating eggs.
5050+5151+## Override Scope {#sec-chicken-override-scope}
5252+5353+The chicken package and its eggs, respectively, reside in a scope. This means,
5454+the scope can be overridden to effect other packages in it.
5555+5656+This example shows how to use a local copy of `srfi-180` and have it affect
5757+all the other eggs:
5858+5959+```nix
6060+let
6161+ myChickenPackages = pkgs.chickenPackages.overrideScope' (self: super: {
6262+ # The chicken package itself can be overridden to effect the whole ecosystem.
6363+ # chicken = super.chicken.overrideAttrs {
6464+ # src = ...
6565+ # };
6666+6767+ chickenEggs = super.chickenEggs.overrideScope' (eggself: eggsuper: {
6868+ srfi-180 = eggsuper.srfi-180.overrideAttrs {
6969+ # path to a local copy of srfi-180
7070+ src = ...
7171+ };
7272+ });
7373+ });
7474+in
7575+# Here, `myChickenPackages.chickenEggs.json-rpc`, which depends on `srfi-180` will use
7676+# the local copy of `srfi-180`.
7777+# ...
7878+```