devos/lib/pkgs-lib/default.nix

21 lines
410 B
Nix
Raw Normal View History

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