From bae9a307ad2b6504eed5e073e54a38595d177502 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Sat, 25 Feb 2023 10:53:27 -0800 Subject: [PATCH] fcitx5: ensure local layout folder exists --- modules/fcitx5/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/fcitx5/default.nix b/modules/fcitx5/default.nix index bd15281..0cda3e7 100644 --- a/modules/fcitx5/default.nix +++ b/modules/fcitx5/default.nix @@ -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} ''; }