catppuccin-fcitx5: add rounded corners support

I'm not really sure if this is the *best* way to do this per se, but it
works for now
This commit is contained in:
Leah Amelia Chen 2025-05-18 15:43:41 +02:00
parent b604ac857e
commit b485c52e8f
No known key found for this signature in database

View file

@ -3,6 +3,8 @@
stdenvNoCC,
fetchFromGitHub,
unstableGitUpdater,
withRoundedCorners ? false,
}:
stdenvNoCC.mkDerivation {
pname = "catppuccin-fcitx5";
@ -18,12 +20,19 @@ stdenvNoCC.mkDerivation {
dontConfigure = true;
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/fcitx5
cp -r src $out/share/fcitx5/themes
runHook postInstall
'';
installPhase =
''
runHook preInstall
''
+ lib.optionalString withRoundedCorners ''
find src -name theme.conf -exec sed -iE 's/^# (Image=(panel|highlight).svg)/\1/' {} +
''
+ ''
mkdir -p $out/share/fcitx5
cp -r src $out/share/fcitx5/themes
runHook postInstall
'';
passthru.updateScript = unstableGitUpdater { };