fcitx5: ensure local layout folder exists

inky
Elnu 2 years ago
parent e26ba26042
commit bae9a307ad

@ -37,9 +37,11 @@ in
# $ vim nicola.sty
# $ diff $source nicola.sty > nicola.patch
home.activation.nicola = let
target = ".local/share/fcitx5/anthy/nicola.sty";
targetDir = ".local/share/fcitx5/anthy/";
target = "nicola.sty";
in lib.hm.dag.entryAfter["writeBoundary"] ''
mkdir -p ${targetDir}
rm -f -- ${target}
patch -ruN ${pkgs.fcitx5-anthy}/share/fcitx5/anthy/nicola-j.sty ${./nicola.patch} -o ${target}
patch -ruN ${pkgs.fcitx5-anthy}/share/fcitx5/anthy/nicola-j.sty ${./nicola.patch} -o ${targetDir}${target}
'';
}

Loading…
Cancel
Save