1
0
Fork 0
nixos-config/overlays/element-web/default.nix

13 lines
446 B
Nix
Raw Normal View History

2022-09-09 16:24:53 +00:00
final: prev: {
2023-05-22 01:06:42 +00:00
element-web = final.runCommand "maralorns-element-web" { } ''
2023-02-19 20:13:33 +00:00
cp -r ${prev.element-web} $out
cd $out
chmod u+w -R $out
bundlecss=$(find . -name 'bundle.css')
cat ${./user.css} >> $bundlecss
bundlejs=$(find . -name 'vendors~init.js')
sed -i 's/return n.room.roomId===e||n.isUnread}/return n.room.roomId===e||n.hasUnreadCount}/' $bundlejs
cp ${./orville_communicator.opus} media/message.ogg
'';
2021-05-26 19:15:16 +00:00
}