mirror of
https://github.com/divnix/digga.git
synced 2024-12-25 09:04:07 +03:00
fb14e20249
returns only non-broken derivations that support the system.
25 lines
528 B
Nix
25 lines
528 B
Nix
args@{ nixos, self, ... }:
|
|
let inherit (nixos) lib; in
|
|
lib.makeExtensible (final:
|
|
let callLibs = file: import file
|
|
({
|
|
inherit lib;
|
|
|
|
dev = final;
|
|
} // args);
|
|
in
|
|
with final;
|
|
{
|
|
inherit callLibs;
|
|
|
|
attrs = callLibs ./attrs.nix;
|
|
os = callLibs ./devos;
|
|
lists = callLibs ./lists.nix;
|
|
strings = callLibs ./strings.nix;
|
|
|
|
inherit (attrs) mapFilterAttrs genAttrs'
|
|
pathsToImportedAttrs concatAttrs filterPackages;
|
|
inherit (lists) pathsIn;
|
|
inherit (strings) rgxToString;
|
|
})
|