diff options
author | azahi <azat@bahawi.net> | 2024-10-21 14:22:29 +0300 |
---|---|---|
committer | azahi <azat@bahawi.net> | 2024-10-21 14:22:29 +0300 |
commit | 5c92aab0c7dde0729484f8878a8ebf05e5fc79ab (patch) | |
tree | b76a1ce5c577d28d4a69738d3213fcf1ee0e3394 /overlays.nix | |
parent | 2024-10-17 (diff) |
2024-10-21
Diffstat (limited to 'overlays.nix')
-rw-r--r-- | overlays.nix | 56 |
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; }; } ); |