about summary refs log tree commit diff
path: root/overlays.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--overlays.nix35
1 files changed, 20 insertions, 15 deletions
diff --git a/overlays.nix b/overlays.nix
index 3e01cfc..5b80ae2 100644
--- a/overlays.nix
+++ b/overlays.nix
@@ -77,20 +77,25 @@
       })).overrideAttrs
         (_: super: { patches = (super.patches or [ ]) ++ [ ./patches/telegram-desktop-no-ads.patch ]; });
 
-    vesktop = prev.vesktop.overrideAttrs (
-      _: super: {
-        nativeBuildInputs = super.nativeBuildInputs ++ [ final.imagemagick ];
-        patches = (super.patches or [ ]) ++ [ ./patches/vesktop-no-anime.patch ];
-        postInstall =
-          (super.postInstall or "")
-          + ''
-            rm -rf $out/share/icons/hicolor/*
-            for size in 16 24 32 48 64 96; do
-              convert -scale $size icon.png $size.png
-              install -Dm644 $size.png $out/share/icons/hicolor/''${size}x''${size}/apps/vesktop.png
-            done
-          '';
-      }
-    );
+    vesktop =
+      (prev.vesktop.overrideAttrs (
+        _: super: {
+          nativeBuildInputs = super.nativeBuildInputs ++ [ final.imagemagick ];
+          patches = (super.patches or [ ]) ++ [ ./patches/vesktop-no-anime.patch ];
+          postInstall =
+            (super.postInstall or "")
+            + ''
+              rm -rf $out/share/icons/hicolor/*
+              for size in 1024 128 256 32 512 64; do
+                convert -scale $size $src/build/icon.png $size.png
+                install -Dm644 $size.png $out/share/icons/hicolor/''${size}x''${size}/apps/vesktop.png
+              done
+            '';
+        }
+      )).override
+        {
+          withSystemVencord = false;
+          withTTS = false;
+        };
   };
 }

Consider giving Nix/NixOS a try! <3