summary refs log tree commit diff
path: root/pkgs/yubikey-touch-detector/default.nix
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2025-06-06 00:53:57 +0200
committerMel <mel@rnrd.eu>2025-06-06 00:53:57 +0200
commit5948bab4ec817e5887fed9fa375da81207560794 (patch)
treef170ce380421cbffe0f1e2e30d82131c16b257e8 /pkgs/yubikey-touch-detector/default.nix
parent1b6875c312bf5a0a2444b8c086a7d12d087511eb (diff)
downloadminerals-5948bab4ec817e5887fed9fa375da81207560794.tar.zst
minerals-5948bab4ec817e5887fed9fa375da81207560794.zip
Patch yubikey-touch-detector for better message and icon
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'pkgs/yubikey-touch-detector/default.nix')
-rw-r--r--pkgs/yubikey-touch-detector/default.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/pkgs/yubikey-touch-detector/default.nix b/pkgs/yubikey-touch-detector/default.nix
new file mode 100644
index 0000000..a1642ec
--- /dev/null
+++ b/pkgs/yubikey-touch-detector/default.nix
@@ -0,0 +1,14 @@
+{ yubikey-touch-detector, ... }:
+
+yubikey-touch-detector.overrideAttrs (attrs: {
+  patches = [ ./yubikey-touch-detector.patch ];
+
+  postInstall =
+    (attrs.postInstall or "")
+    + ''
+      rm $out/share/icons/hicolor/128x128/apps/yubikey-touch-detector.png
+
+      install -Dm444 -T ${./touch.svg} \
+        $out/share/icons/hicolor/scalable/apps/yubikey-touch-symbolic.svg
+    '';
+})