{ userName, pkgs, ... }:
let
  runSed = path: sedScript: pkgs.runCommand (baseNameOf path) { buildInputs = [ pkgs.gnused ]; } "sed -r -f ${pkgs.writeText "script-file" sedScript} ${path} > $out";
in {
  config.home-manager.users.${userName}.home.file.".XCompose".text = ''
     include "${pkgs.xorg.libX11}/share/X11/locale/en_US.UTF-8/Compose"
     include "${runSed "${pkgs.xcompose}/dotXCompose" ''
       /include "%L"/ s/^/# /
     ''}"
     include "${pkgs.xcompose}/frakturcompose"
     include "${pkgs.xcompose}/emoji.compose"
     include "${pkgs.xcompose}/modletters.compose"
     include "${pkgs.xcompose}/tags.compose"
     include "${pkgs.xcompose}/maths.compose"
     include "${pkgs.xcompose}/parens.compose"

     <Multi_key>  <colon> <parenleft> :  "🙁"   U1F641      # SLIGHTLY FROWNING FACE
     <Multi_key> <Multi_key>  <colon> <minus> <parenleft> :  "🙁"   U1F641      # SLIGHTLY FROWNING FACE
     <Multi_key> <Multi_key>  <colon> <c> :  "☚ī¸"   U2639      # WHITE FROWNING FACE VARIANT
  '';
}