mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
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:
parent
b604ac857e
commit
b485c52e8f
1 changed files with 15 additions and 6 deletions
|
@ -3,6 +3,8 @@
|
||||||
stdenvNoCC,
|
stdenvNoCC,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
unstableGitUpdater,
|
unstableGitUpdater,
|
||||||
|
|
||||||
|
withRoundedCorners ? false,
|
||||||
}:
|
}:
|
||||||
stdenvNoCC.mkDerivation {
|
stdenvNoCC.mkDerivation {
|
||||||
pname = "catppuccin-fcitx5";
|
pname = "catppuccin-fcitx5";
|
||||||
|
@ -18,12 +20,19 @@ stdenvNoCC.mkDerivation {
|
||||||
dontConfigure = true;
|
dontConfigure = true;
|
||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
|
|
||||||
installPhase = ''
|
installPhase =
|
||||||
runHook preInstall
|
''
|
||||||
mkdir -p $out/share/fcitx5
|
runHook preInstall
|
||||||
cp -r src $out/share/fcitx5/themes
|
''
|
||||||
runHook postInstall
|
+ 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 { };
|
passthru.updateScript = unstableGitUpdater { };
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue