blob: 1acf97f42a3a2d8035dc1b63b4b26836b7dec4a7 [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
Skyler Greyde5afd12023-01-26 00:49:36 +00009 qt6
Skyler Grey3824e3b2022-10-31 00:26:20 +000010 ];
Skyler Greyee0c0952022-09-01 23:33:36 +010011in
Skyler Grey252927a2022-10-18 22:18:15 +010012lib.pipe ../packages [
13 utils.nixFilesInWithName
14 (map ({ name
15 , path
16 ,
17 }: {
18 name = builtins.substring 0 ((builtins.stringLength name) - 4) name;
19 value = final.callPackage path (
20 builtins.intersectAttrs
Skyler Grey3824e3b2022-10-31 00:26:20 +000021 (builtins.functionArgs (import path))
Skyler Grey94c1a782022-10-31 00:30:26 +000022 (lib.fold lib.mergeAttrs
23 {
24 packageSets = {
25 fenix = fenix.packages.${prev.system};
26 };
27 }
28 extraAttrSets)
Skyler Grey252927a2022-10-18 22:18:15 +010029 );
30 }))
31 builtins.listToAttrs
32]