From 5c92aab0c7dde0729484f8878a8ebf05e5fc79ab Mon Sep 17 00:00:00 2001 From: azahi Date: Mon, 21 Oct 2024 14:22:29 +0300 Subject: 2024-10-21 --- overlays.nix | 56 +++++++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 41 insertions(+), 15 deletions(-) (limited to 'overlays.nix') 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; }; } ); -- cgit 1.4.1