diff options
| author | Mel <mel@rnrd.eu> | 2025-07-13 03:21:17 +0200 |
|---|---|---|
| committer | Mel <mel@rnrd.eu> | 2025-07-13 03:22:15 +0200 |
| commit | c71f30990d7db1b7dce801d9dea0822fa9ed9470 (patch) | |
| tree | 6e5e62f2f70df0dc010d3ca9c202ffd95cae7025 | |
| parent | f999d4d67a7440d1281b9a1fc69458eab5d2761f (diff) | |
| download | minerals-c71f30990d7db1b7dce801d9dea0822fa9ed9470.tar.zst minerals-c71f30990d7db1b7dce801d9dea0822fa9ed9470.zip | |
Patch Equibop to include more icon sizes for Gnome
Signed-off-by: Mel <mel@rnrd.eu>
| -rw-r--r-- | modules/arm.nix | 4 | ||||
| -rw-r--r-- | pkgs/default.nix | 2 | ||||
| -rw-r--r-- | pkgs/equibop.nix | 28 |
3 files changed, 32 insertions, 2 deletions
diff --git a/modules/arm.nix b/modules/arm.nix index ac688df..df8e02e 100644 --- a/modules/arm.nix +++ b/modules/arm.nix @@ -1,7 +1,7 @@ { me, lib, - pkgs, + auxiliaryPkgs, ... }: @@ -13,7 +13,7 @@ assert lib.assertMsg ( # used to include replacements for necessary programs with no # default support for aarch64. (i.e. discord) - environment.systemPackages = with pkgs; [ + environment.systemPackages = with auxiliaryPkgs; [ equibop # discord ]; } diff --git a/pkgs/default.nix b/pkgs/default.nix index eeeb5a7..f5229fe 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -18,4 +18,6 @@ wine = pkgs.callPackage ./wine.nix { }; yubikey-touch-detector = pkgs.callPackage ./yubikey-touch-detector { }; + + equibop = pkgs.callPackage ./equibop.nix { }; } diff --git a/pkgs/equibop.nix b/pkgs/equibop.nix new file mode 100644 index 0000000..2e3c3e3 --- /dev/null +++ b/pkgs/equibop.nix @@ -0,0 +1,28 @@ +{ + equibop, + imagemagick, + ... +}: + +equibop.overrideAttrs ( + final: prev: { + nativeBuildInputs = prev.nativeBuildInputs ++ [ + imagemagick + ]; + + postBuild = + prev.postBuild + + '' + pushd build + + for size in 16 24 32 48 64 128 256 512 1024; do + mkdir -pv $out/share/icons/hicolor/"$size"x"$size"/apps + if [ ! -e icon_"$size"x"$size"x32.png ] ; then + convert -resize "$size"x"$size" icon_1024x1024x32.png icon_"$size"x"$size"x32.png + fi + done; + + popd + ''; + } +) |
