Skyler Grey | 46d8066 | 2023-01-26 00:46:50 +0000 | [diff] [blame] | 1 | final: prev: let |
2 | programs = [ | ||||
3 | "steam" | ||||
4 | "prismlauncher" | ||||
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 | ] |