treewide: use original MoreWaita with patch
I originally made my own MoreWaita fork to add a few icons I needed, anticipating for my future ags shell, but applying a patch actually made way more sense, and is also simpler than maintaining my own fork.
This commit is contained in:
parent
2ee69adcd7
commit
c122cea302
3 changed files with 34 additions and 6 deletions
10
flake.lock
generated
10
flake.lock
generated
|
@ -738,15 +738,15 @@
|
|||
"morewaita": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1739553699,
|
||||
"narHash": "sha256-gmFavqgaklS1XuWXD9KofAAL48qcRe5daNGH531PUig=",
|
||||
"owner": "nezia1",
|
||||
"lastModified": 1736335410,
|
||||
"narHash": "sha256-gdU4GcNrxMktsMbxRkzd3NdD7oYSAhSo29lBMWp+HQ4=",
|
||||
"owner": "somepaulo",
|
||||
"repo": "MoreWaita",
|
||||
"rev": "bd7328ed13bd11cdc545f039e1c635aef292a90f",
|
||||
"rev": "29ddd25363bf1c4be306f3bf1ea1507b443d8dee",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nezia1",
|
||||
"owner": "somepaulo",
|
||||
"repo": "MoreWaita",
|
||||
"type": "github"
|
||||
}
|
||||
|
|
|
@ -118,7 +118,7 @@
|
|||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
morewaita = {
|
||||
url = "github:nezia1/MoreWaita"; # using my own fork for caffeine icons
|
||||
url = "github:somepaulo/MoreWaita";
|
||||
flake = false;
|
||||
};
|
||||
nix-gaming = {
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
}: let
|
||||
inherit (lib) attrNames mkEnableOption mkOption pathExists;
|
||||
inherit (lib.types) attrs bool enum package path str;
|
||||
inherit (lib.lists) singleton;
|
||||
|
||||
cfg = config.local.style;
|
||||
in {
|
||||
|
@ -102,6 +103,33 @@ in {
|
|||
description = "The GTK icon theme to be used";
|
||||
default = pkgs.morewaita-icon-theme.overrideAttrs {
|
||||
src = inputs.morewaita;
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -d $out/share/icons/MoreWaita
|
||||
cp -r . $out/share/icons/MoreWaita
|
||||
cp ${../../assets/icons/my-caffeine-on-symbolic.svg} $out/share/icons/MoreWaita/symbolic/status/my-caffeine-on-symbolic.svg
|
||||
cp ${../../assets/icons/my-caffeine-off-symbolic.svg} $out/share/icons/MoreWaita/symbolic/status/my-caffeine-off-symbolic.svg
|
||||
gtk-update-icon-cache -f -t $out/share/icons/MoreWaita && xdg-desktop-menu forceupdate
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
/*
|
||||
a patch is needed because MoreWaita expects a `meson.build` file in the directory, containing the
|
||||
name of every icon.
|
||||
*/
|
||||
patches = singleton (pkgs.writeText "add-caffeine-icons.patch" ''
|
||||
diff --git a/symbolic/status/meson.build b/symbolic/status/meson.build
|
||||
index 4e5bfc5..3bbf989 100644
|
||||
--- a/symbolic/status/meson.build
|
||||
+++ b/symbolic/status/meson.build
|
||||
@@ -17,2 +17,4 @@ regular_files = [
|
||||
'keepassxc-unlocked.svg',
|
||||
+ 'my-caffeine-off-symbolic.svg',
|
||||
+ 'my-caffeine-on-symbolic.svg',
|
||||
'pamac-tray-no-update.svg',
|
||||
'');
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue