ark/lib/pkgs-lib/default.nix
2021-04-18 19:28:03 -05:00

21 lines
423 B
Nix

args@{ lib, utils, nixpkgs, ... }:
lib.genAttrs utils.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;
}
)
)