summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/default.nix2
-rw-r--r--pkgs/equibop.nix28
2 files changed, 30 insertions, 0 deletions
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
+      '';
+  }
+)