summary refs log tree commit diff
path: root/pkgs/applications/networking/instant-messengers/telegram
diff options
context:
space:
mode:
authorK900 <me@0upti.me>2023-04-27 00:42:21 +0300
committerK900 <me@0upti.me>2023-04-27 00:42:21 +0300
commit99cb935fbf21590ddc4660639a308a96ee832f23 (patch)
treeb405c4db687f3ed57eac9c0ed62501c5b196f80c /pkgs/applications/networking/instant-messengers/telegram
parentda5c97ee2920a1bb41bee68808764209fb26e5a2 (diff)
downloadnixpkgs-99cb935fbf21590ddc4660639a308a96ee832f23.tar
nixpkgs-99cb935fbf21590ddc4660639a308a96ee832f23.tar.gz
nixpkgs-99cb935fbf21590ddc4660639a308a96ee832f23.tar.bz2
nixpkgs-99cb935fbf21590ddc4660639a308a96ee832f23.tar.lz
nixpkgs-99cb935fbf21590ddc4660639a308a96ee832f23.tar.xz
nixpkgs-99cb935fbf21590ddc4660639a308a96ee832f23.tar.zst
nixpkgs-99cb935fbf21590ddc4660639a308a96ee832f23.zip
telegram-desktop: remove crimes
This may have worked 4 years ago, but it most definitely does not work on the binary wrapper.
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/telegram')
-rw-r--r--pkgs/applications/networking/instant-messengers/telegram/telegram-desktop/default.nix5
1 files changed, 1 insertions, 4 deletions
diff --git a/pkgs/applications/networking/instant-messengers/telegram/telegram-desktop/default.nix b/pkgs/applications/networking/instant-messengers/telegram/telegram-desktop/default.nix
index 33c943e3bc9..254540bf8f9 100644
--- a/pkgs/applications/networking/instant-messengers/telegram/telegram-desktop/default.nix
+++ b/pkgs/applications/networking/instant-messengers/telegram/telegram-desktop/default.nix
@@ -181,10 +181,7 @@ stdenv.mkDerivation rec {
       "''${gappsWrapperArgs[@]}" \
       "''${qtWrapperArgs[@]}" \
       --prefix LD_LIBRARY_PATH : "${xorg.libXcursor}/lib" \
-      --suffix PATH : ${lib.makeBinPath [ xdg-utils ]} \
-      --set XDG_RUNTIME_DIR "XDG-RUNTIME-DIR"
-    sed -i $out/bin/telegram-desktop \
-      -e "s,'XDG-RUNTIME-DIR',\"\''${XDG_RUNTIME_DIR:-/run/user/\$(id --user)}\","
+      --suffix PATH : ${lib.makeBinPath [ xdg-utils ]}
   '';
 
   passthru = {