lib: add the builders to top-level attrset

This commit is contained in:
Gabriel Arazas 2024-10-26 19:35:54 +08:00
parent 3bd5f26e76
commit 2273aa0f7f
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360
2 changed files with 11 additions and 8 deletions

View File

@ -1,8 +1,8 @@
{ buildEnv, extendedStdenv }:
{ paths ? [ ], pathsToLink ? [ ], }@args:
{ paths ? [ ], pathsToLink ? [ ], ... }@args:
buildEnv (args // {
paths = paths ++ [ extendedStdenv ];
pathsToLink = pathsToLink ++ [ "/bin" "/etc" "/share" "/lib" ];
paths = extendedStdenv ++ paths;
pathsToLink = [ "/bin" "/etc" "/share" "/lib" "/libexec" ] ++ pathsToLink;
})

View File

@ -24,8 +24,8 @@ pkgs.lib.makeExtensible
# extended version of nixpkgs' version that went overboard with
# developer-oriented dependencies.
stdenv = with pkgs;
[ stdenv direnv cookiecutter oils-for-unix nushell ipcalc ]
++ lib.optional pkgs.isLinux [
[ direnv cookiecutter oils-for-unix nushell ipcalc ]
++ lib.optional stdenv.isLinux [
gdb
moreutils
meson
@ -33,10 +33,13 @@ pkgs.lib.makeExtensible
pkg-config
man-pages
man-pages-posix
];
] ++ (import "${pkgs.path}/pkgs/stdenv/generic/common-path.nix" {
inherit pkgs;
});
inherit (self.builders) makeXDGMimeAssociationList
makeXDGPortalConfiguration makeXDGDesktopEntry;
inherit (self.builders)
makeXDGMimeAssociationList makeXDGPortalConfiguration makeXDGDesktopEntry
buildHugoSite buildFDSEnv;
inherit (self.trivial) countAttrs filterAttrs';
inherit (self.data) importYAML renderTeraTemplate renderMustacheTemplate;
inherit (self.fetchers) fetchInternetArchive;