ark/lib/pkgs-lib/default.nix

21 lines
428 B
Nix
Raw Normal View History

2021-04-02 05:10:24 +03:00
args@{ lib, dev, utils, nixpkgs, ... }:
lib.genAttrs utils.lib.defaultSystems (system:
lib.makeExtensible (final:
let
2021-04-02 05:10:24 +03:00
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;
}
)
)