summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/arm.nix4
-rw-r--r--pkgs/default.nix2
-rw-r--r--pkgs/equibop.nix28
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
+ '';
+ }
+)