blob: d238dd7a71816de7f633bac966df2527be50f468 [file] [log] [blame]
Skyler Grey94c1a782022-10-31 00:30:26 +00001{ fenix, ...}: final: prev:
Skyler Grey252927a2022-10-18 22:18:15 +01002let
Skyler Grey6b4e37a2022-10-30 23:00:04 +00003 lib = prev.lib;
Skyler Greyee0c0952022-09-01 23:33:36 +01004 utils = import ../utils lib;
Skyler Grey3824e3b2022-10-31 00:26:20 +00005
6 extraAttrSets = with final; [
7 libsForQt5
8 libsForQt5.qt5
9 ];
Skyler Greyee0c0952022-09-01 23:33:36 +010010in
Skyler Grey252927a2022-10-18 22:18:15 +010011lib.pipe ../packages [
12 utils.nixFilesInWithName
13 (map ({ name
14 , path
15 ,
16 }: {
17 name = builtins.substring 0 ((builtins.stringLength name) - 4) name;
18 value = final.callPackage path (
19 builtins.intersectAttrs
Skyler Grey3824e3b2022-10-31 00:26:20 +000020 (builtins.functionArgs (import path))
Skyler Grey94c1a782022-10-31 00:30:26 +000021 (lib.fold lib.mergeAttrs
22 {
23 packageSets = {
24 fenix = fenix.packages.${prev.system};
25 };
26 }
27 extraAttrSets)
Skyler Grey252927a2022-10-18 22:18:15 +010028 );
29 }))
30 builtins.listToAttrs
31]