be924bcb27
for clarity's sake, expose which function uses final and prev, so that people can have a clearer understanding how they relate to each other in terms of dependencies. also a simple `{ lib = final; }` probably does not warrant a complete callLibs obscurization.
20 lines
423 B
Nix
20 lines
423 B
Nix
args@{ lib, nixpkgs, deploy, devshell }:
|
|
lib.genAttrs lib.defaultSystems (system:
|
|
lib.makeExtensible (final:
|
|
let
|
|
pkgs = import nixpkgs { inherit system; };
|
|
callLibs = file: import file
|
|
(args // {
|
|
inherit pkgs system;
|
|
pkgs-lib = final;
|
|
});
|
|
in
|
|
with final;
|
|
{
|
|
inherit callLibs;
|
|
|
|
tests = callLibs ./tests;
|
|
shell = callLibs ./shell;
|
|
}
|
|
)
|
|
)
|