diff options
author | Nick Cao <nickcao@nichi.co> | 2023-03-23 13:33:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-23 13:33:33 +0800 |
commit | 3abfa15068e2a745cbdb1e4a8ec7c78874e904ea (patch) | |
tree | 91c55e846e7ac9e83e9bd324123decb2aafe8a60 | |
parent | 72a8c4941580f6fb4540a736b39c907b1b8949f4 (diff) | |
parent | 1320cb8157dff844e102106e727588fdd6e1fa20 (diff) | |
download | nixpkgs-3abfa15068e2a745cbdb1e4a8ec7c78874e904ea.tar nixpkgs-3abfa15068e2a745cbdb1e4a8ec7c78874e904ea.tar.gz nixpkgs-3abfa15068e2a745cbdb1e4a8ec7c78874e904ea.tar.bz2 nixpkgs-3abfa15068e2a745cbdb1e4a8ec7c78874e904ea.tar.lz nixpkgs-3abfa15068e2a745cbdb1e4a8ec7c78874e904ea.tar.xz nixpkgs-3abfa15068e2a745cbdb1e4a8ec7c78874e904ea.tar.zst nixpkgs-3abfa15068e2a745cbdb1e4a8ec7c78874e904ea.zip |
Merge pull request #218726 from NickCao/tdesktop-register
tdesktop: add patch to disable custom URL scheme registration
-rw-r--r-- | pkgs/applications/networking/instant-messengers/telegram/tdesktop/default.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/applications/networking/instant-messengers/telegram/tdesktop/default.nix b/pkgs/applications/networking/instant-messengers/telegram/tdesktop/default.nix index 2bdaa0c6355..648af9a92de 100644 --- a/pkgs/applications/networking/instant-messengers/telegram/tdesktop/default.nix +++ b/pkgs/applications/networking/instant-messengers/telegram/tdesktop/default.nix @@ -1,5 +1,6 @@ { lib , fetchFromGitHub +, fetchpatch , callPackage , pkg-config , cmake @@ -84,6 +85,16 @@ stdenv.mkDerivation rec { sha256 = "0c65ry82ffmh1qzc2lnsyjs78r9jllv62p9vglpz0ikg86zf36sk"; }; + patches = [ + # the generated .desktop files contains references to unwrapped tdesktop, breaking scheme handling + # and the scheme handler is already registered in the packaged .desktop file, rendering this unnecessary + # see https://github.com/NixOS/nixpkgs/issues/218370 + (fetchpatch { + url = "https://salsa.debian.org/debian/telegram-desktop/-/raw/09b363ed5a4fcd8ecc3282b9bfede5fbb83f97ef/debian/patches/Disable-register-custom-scheme.patch"; + hash = "sha256-B8X5lnSpwwdp1HlvyXJWQPybEN+plOwimdV5gW6aY2Y="; + }) + ]; + postPatch = '' substituteInPlace Telegram/ThirdParty/libtgvoip/os/linux/AudioInputALSA.cpp \ --replace '"libasound.so.2"' '"${alsa-lib}/lib/libasound.so.2"' |