Skyler Grey | 5e4a87f | 2023-02-26 12:54:24 +0000 | [diff] [blame] | 1 | { fenix, crane }: final: prev: |
Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 2 | let |
Skyler Grey | 6b4e37a | 2022-10-30 23:00:04 +0000 | [diff] [blame] | 3 | lib = prev.lib; |
Skyler Grey | ee0c095 | 2022-09-01 23:33:36 +0100 | [diff] [blame] | 4 | utils = import ../utils lib; |
Skyler Grey | 3824e3b | 2022-10-31 00:26:20 +0000 | [diff] [blame] | 5 | |
6 | extraAttrSets = with final; [ | ||||
7 | libsForQt5 | ||||
8 | libsForQt5.qt5 | ||||
Skyler Grey | de5afd1 | 2023-01-26 00:49:36 +0000 | [diff] [blame] | 9 | qt6 |
Skyler Grey | 3824e3b | 2022-10-31 00:26:20 +0000 | [diff] [blame] | 10 | ]; |
Skyler Grey | ee0c095 | 2022-09-01 23:33:36 +0100 | [diff] [blame] | 11 | in |
Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 12 | lib.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 Grey | 3824e3b | 2022-10-31 00:26:20 +0000 | [diff] [blame] | 21 | (builtins.functionArgs (import path)) |
Skyler Grey | 94c1a78 | 2022-10-31 00:30:26 +0000 | [diff] [blame] | 22 | (lib.fold lib.mergeAttrs |
23 | { | ||||
24 | packageSets = { | ||||
25 | fenix = fenix.packages.${prev.system}; | ||||
26 | }; | ||||
Skyler Grey | 5e4a87f | 2023-02-26 12:54:24 +0000 | [diff] [blame] | 27 | _tooling = { |
28 | inherit crane; | ||||
29 | }; | ||||
Skyler Grey | 94c1a78 | 2022-10-31 00:30:26 +0000 | [diff] [blame] | 30 | } |
31 | extraAttrSets) | ||||
Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 32 | ); |
33 | })) | ||||
34 | builtins.listToAttrs | ||||
35 | ] |