1  ---------------------------------------------------------------------------------------
2  nixCats.flake.nixperts.overlays
3  
4  # The following is the overlays/default.nix file.
5  # you may copy paste it into a file then include it in your flake.nix
6  # to add new overlays you should follow 
7  # the example inside the comment block.
8  # it is done this way for convenience but you could do it another way.
9  
10   /*
11   This file imports overlays defined in the following format.
12   Plugins will still only be downloaded if included in a category.
13   You may copy paste this example into a new file and then import that file here.
14   */
15   # Example overlay:
16   /*
17   importName: inputs: let
18     overlay = self: super: { 
19       ${importName} = {
20         # define your overlay derivations here
21       };
22     };
23   in
24   overlay
25   */
26   inputs: let 
27     overlaySet = {
28 
29       # this is how you would add another overlay file
30       # for if your customBuildsOverlay gets too long
31       # the name here will be the name used when importing items from it in your flake.
32       # i.e. these items will be accessed as pkgs.nixCatsBuilds.thenameofthepackage
33       nixCatsBuilds = import ./customBuildsOverlay.nix;
34 
35     };
36   in
37   # calls the functions from the overlay files to create the overlays,
38   # then puts them in a list.
39   builtins.attrValues (builtins.mapAttrs (name: value: (value name inputs)) overlaySet)
40 
41 ---------------------------------------------------------------------------------------
42 Example overlays without the comments:
43 The value in importName is the name in the set from overlaySet
44 You dont need to use it, but it helps in avoiding naming conflicts.
45 
46   */
47   # Example overlay:
48   /*
49   importName: inputs: let
50     overlay = self: super: { 
51       ${importName} = {
52         # define your overlay derivations here
53       };
54     };
55   in
56   overlay
57 
58   # Example overlay 2:
59   importName: inputs: let
60     overlay = self: super: { 
61       ${importName} = some.derivation.here;
62     };
63   in
64   overlay
65 
66 ---------------------------------------------------------------------------------------
67 vim:tw=78:ts=8:ft=help:norl: