lib: reformat code

This commit is contained in:
Gabriel Arazas 2024-10-30 19:03:30 +08:00
parent 27bfb04da9
commit 5fea0bfcba
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360
2 changed files with 12 additions and 10 deletions

View File

@ -1,8 +1,10 @@
{ pkgs, lib, self }:
{
makeXDGMimeAssociationList = pkgs.callPackage ./xdg/make-association-list.nix { };
makeXDGPortalConfiguration = pkgs.callPackage ./xdg/make-portal-config.nix { };
makeXDGMimeAssociationList =
pkgs.callPackage ./xdg/make-association-list.nix { };
makeXDGPortalConfiguration =
pkgs.callPackage ./xdg/make-portal-config.nix { };
makeXDGDesktopEntry = pkgs.callPackage ./xdg/make-desktop-entry.nix { };
buildHugoSite = pkgs.callPackage ./hugo-build-site { };
buildFDSEnv =

View File

@ -6,19 +6,18 @@
# If you have to add those functions, you'll have to add them in configUtils.
{ pkgs }:
let
inherit (pkgs) lib;
in
pkgs.lib.makeExtensible
(self:
let
callLib = file: import file { inherit pkgs lib self; };
let inherit (pkgs) lib;
in pkgs.lib.makeExtensible (self:
let callLib = file: import file { inherit pkgs lib self; };
in {
builders = callLib ./builders;
trivial = callLib ./trivial.nix;
data = callLib ./data.nix;
math = callLib ./math.nix;
# For future references, these are the only attributes that are going to be
# exported as part of nixpkgs overlay.
fetchers = callLib ./fetchers;
builders = callLib ./builders;
# foodogsquared's version of a standard environment. Basically just an
# extended version of nixpkgs' version that went overboard with
@ -33,6 +32,7 @@ pkgs.lib.makeExtensible
pkg-config
man-pages
man-pages-posix
neovim
] ++ (import "${pkgs.path}/pkgs/stdenv/generic/common-path.nix" {
inherit pkgs;
});