Created
December 24, 2018 10:50
-
-
Save ivan/73cb48ec593ec9071f6ed23d68f54565 to your computer and use it in GitHub Desktop.
nixpkgs fix for Signal-Desktop problems
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 07c44f9cee29524f7e82c7d422942b423f4c6f7e Mon Sep 17 00:00:00 2001 | |
From: Ivan Kozik <[email protected]> | |
Date: Mon, 24 Dec 2018 07:59:33 +0000 | |
Subject: [PATCH] signal-desktop: add flags --disable-smooth-scrolling | |
--disable-gpu | |
--- | |
.../instant-messengers/signal-desktop/default.nix | 7 +++++++ | |
1 file changed, 7 insertions(+) | |
diff --git a/pkgs/applications/networking/instant-messengers/signal-desktop/default.nix b/pkgs/applications/networking/instant-messengers/signal-desktop/default.nix | |
index 9dd9a0d3334..f9980a75a1e 100644 | |
--- a/pkgs/applications/networking/instant-messengers/signal-desktop/default.nix | |
+++ b/pkgs/applications/networking/instant-messengers/signal-desktop/default.nix | |
@@ -82,9 +82,16 @@ in stdenv.mkDerivation rec { | |
# Patch signal | |
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ | |
--set-rpath ${rpath}:$out/libexec $out/libexec/signal-desktop | |
+ | |
+ # --disable-smooth-scrolling because it's annoying | |
+ # --disable-gpu because of Electron problems: | |
+ # https://github.com/signalapp/Signal-Desktop/issues/2971 | |
+ # https://github.com/signalapp/Signal-Desktop/issues/2741#issuecomment-447192904 | |
wrapProgram $out/libexec/signal-desktop \ | |
--prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}/" \ | |
--prefix LD_LIBRARY_PATH : "${stdenv.cc.cc.lib}/lib" \ | |
+ --add-flags "--disable-smooth-scrolling" \ | |
+ --add-flags "--disable-gpu" \ | |
${customLanguageWrapperArgs} \ | |
"''${gappsWrapperArgs[@]}" | |
-- | |
2.19.2 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment