Skyler Grey | 46d8066 | 2023-01-26 00:46:50 +0000 | [diff] [blame] | 1 | final: prev: let |
| 2 | programs = [ |
Skyler Grey | 2c18911 | 2023-02-19 23:40:25 +0000 | [diff] [blame] | 3 | /* "steam" */ |
Skyler Grey | 5e4a87f | 2023-02-26 12:54:24 +0000 | [diff] [blame] | 4 | /* "prismlauncher" */ |
Skyler Grey | 46d8066 | 2023-01-26 00:46:50 +0000 | [diff] [blame] | 5 | ]; |
| 6 | in prev.lib.pipe programs [ |
| 7 | (map (name: { |
| 8 | inherit name; |
| 9 | value = prev.${name}.overrideAttrs (prevAttrs: { |
| 10 | postInstall = (prevAttrs.postInstall or "") + '' |
| 11 | sed -i 's/^Exec=/&prime-run /g' $out/share/applications/*.desktop |
| 12 | ''; |
| 13 | }); |
| 14 | })) |
| 15 | builtins.listToAttrs |
| 16 | ] |