about summary refs log tree commit diff
path: root/overlays.nix
diff options
context:
space:
mode:
Diffstat (limited to 'overlays.nix')
-rw-r--r--overlays.nix56
1 files changed, 41 insertions, 15 deletions
diff --git a/overlays.nix b/overlays.nix
index a9dc2ec..5800a76 100644
--- a/overlays.nix
+++ b/overlays.nix
@@ -62,13 +62,39 @@
 
     openssl_1_0_0 = prev.callPackage ./packages/openssl_1_0_0.nix { };
 
-    parinfer-rust = prev.callPackage ./packages/parinfer-rust.nix { };
-
     telegram-desktop =
       (prev.telegram-desktop.override (finalAttrs: {
         stdenv = final.useMoldLinker finalAttrs.stdenv;
       })).overrideAttrs
-        (_: super: { patches = (super.patches or [ ]) ++ [ ./packages/telegram-desktop.patch ]; });
+        (
+          _: super: {
+            patches =
+              (super.patches or [ ])
+              ++ (
+                let
+                  patches = "https://raw.githubusercontent.com/msva/mva-overlay/4c89938831bcce03fae22081809e53a47bdee31b/net-im/telegram-desktop/files/patches";
+                in
+                [
+                  (prev.fetchpatch {
+                    url = "${patches}/0/conditional/tdesktop_patches_hide-sponsored-messages/0000-data_data_sponsored_messages.cpp.patch";
+                    hash = "sha256-vVucKG0YNY41MVdqibhKfxL/2/nNPPtYw+otwat971U=";
+                  })
+                  (prev.fetchpatch {
+                    url = "${patches}/0/conditional/tdesktop_patches_allow-disable-stories/option-to-disable-stories.patch";
+                    hash = "sha256-ctL9wIn3cLtqgCcQFNnx7WQuBw+9IjDlMJUicmVt8no=";
+                  })
+                  (prev.fetchpatch {
+                    url = "${patches}/0/conditional/tdesktop_patches_hide-banned/0000_hide-messages-from-blocked-users.patch";
+                    hash = "sha256-61U3wQsUdLvB4ymHPjVecw9WvhW8W/V0Jf1cnvYUkHk=";
+                  })
+                  (prev.fetchpatch {
+                    url = "${patches}/0/conditional/tdesktop_patches_wide-baloons/style.patch";
+                    hash = "sha256-Ot2kb49YsEhaunw/yMgLaqrDYYS+pHPf79Yiwahxj+g=";
+                  })
+                ]
+              );
+          }
+        );
 
     vesktop =
       (prev.vesktop.overrideAttrs (
@@ -91,30 +117,30 @@
           withTTS = false;
         };
 
-    linuxPackages_xanmod_latest = prev.linuxPackages_xanmod_latest.extend (
-      f: _: {
+    linuxPackages_latest = prev.linuxPackages_latest.extend (
+      x: _: {
         amneziawg =
-          inputs.nixpkgs-amneziawg.legacyPackages.${final.system}.linuxPackages_xanmod_latest.amneziawg.override
+          inputs.nixpkgs-amneziawg.legacyPackages.${final.system}.linuxPackages_latest.amneziawg.override
             {
-              inherit (f) kernel;
+              inherit (x) kernel;
             };
       }
     );
-    linuxPackages_latest = prev.linuxPackages_latest.extend (
-      f: _: {
+    linuxPackages_hardened = prev.linuxPackages_hardened.extend (
+      x: _: {
         amneziawg =
-          inputs.nixpkgs-amneziawg.legacyPackages.${final.system}.linuxPackages_latest.amneziawg.override
+          inputs.nixpkgs-amneziawg.legacyPackages.${final.system}.linuxPackages_hardened.amneziawg.override
             {
-              inherit (f) kernel;
+              inherit (x) kernel;
             };
       }
     );
-    linuxPackages_hardened = prev.linuxPackages_hardened.extend (
-      f: _: {
+    linuxPackages_xanmod_latest = prev.linuxPackages_xanmod_latest.extend (
+      x: _: {
         amneziawg =
-          inputs.nixpkgs-amneziawg.legacyPackages.${final.system}.linuxPackages_hardened.amneziawg.override
+          inputs.nixpkgs-amneziawg.legacyPackages.${final.system}.linuxPackages_xanmod_latest.amneziawg.override
             {
-              inherit (f) kernel;
+              inherit (x) kernel;
             };
       }
     );

Consider giving Nix/NixOS a try! <3