2024-06-14 15:45:07 +00:00
|
|
|
# The entrypoint for our custom library set.
|
|
|
|
#
|
|
|
|
# Take note, this is modularly included as part of the environment so we cannot
|
|
|
|
# have any functions or references that could make the evaluation go in an
|
|
|
|
# infinite recursion such as a function that generates a valid nixpkgs module.
|
|
|
|
# If you have to add those functions, you'll have to add them in configUtils.
|
2024-02-25 14:27:05 +00:00
|
|
|
{ pkgs }:
|
2021-12-06 09:55:40 +00:00
|
|
|
|
2024-08-02 03:55:45 +00:00
|
|
|
let
|
|
|
|
inherit (pkgs) lib;
|
|
|
|
in
|
2024-02-25 14:27:05 +00:00
|
|
|
pkgs.lib.makeExtensible
|
2024-03-03 08:39:32 +00:00
|
|
|
(self:
|
|
|
|
let
|
|
|
|
callLib = file: import file { inherit pkgs lib self; };
|
|
|
|
in {
|
2024-08-29 05:00:20 +00:00
|
|
|
builders = callLib ./builders;
|
2024-03-03 08:39:32 +00:00
|
|
|
trivial = callLib ./trivial.nix;
|
2024-06-09 15:03:26 +00:00
|
|
|
data = callLib ./data.nix;
|
2024-08-28 06:36:28 +00:00
|
|
|
fetchers = callLib ./fetchers;
|
2024-03-03 08:39:32 +00:00
|
|
|
|
2024-08-06 03:20:51 +00:00
|
|
|
inherit (self.builders) makeXDGMimeAssociationList
|
|
|
|
makeXDGPortalConfiguration makeXDGDesktopEntry;
|
2024-06-14 15:45:07 +00:00
|
|
|
inherit (self.trivial) countAttrs;
|
2024-06-09 15:03:26 +00:00
|
|
|
inherit (self.data) importYAML renderTeraTemplate;
|
2024-08-28 06:36:28 +00:00
|
|
|
inherit (self.fetchers) fetchInternetArchive;
|
2024-08-02 03:55:45 +00:00
|
|
|
} // lib.optionalAttrs (builtins ? fetchTree) {
|
|
|
|
flake = callLib ./flake.nix;
|
|
|
|
|
|
|
|
inherit (self.flake) importFlakeMetadata fetchTree fetchInput;
|
2024-03-03 08:39:32 +00:00
|
|
|
})
|