about summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorNiklas Hambüchen <mail@nh2.me>2018-10-11 14:37:49 +0200
committerxeji <36407913+xeji@users.noreply.github.com>2018-10-11 14:37:49 +0200
commit8362673d4bcedb4fd1c554282df57e72f24530d7 (patch)
treee5af8bfc20178f375561c5a9c847e5a2abc7fb1d /pkgs/applications
parente820c4cdaad03a2b9354f6d55928153b6cd7ea08 (diff)
downloadnixlib-8362673d4bcedb4fd1c554282df57e72f24530d7.tar
nixlib-8362673d4bcedb4fd1c554282df57e72f24530d7.tar.gz
nixlib-8362673d4bcedb4fd1c554282df57e72f24530d7.tar.bz2
nixlib-8362673d4bcedb4fd1c554282df57e72f24530d7.tar.lz
nixlib-8362673d4bcedb4fd1c554282df57e72f24530d7.tar.xz
nixlib-8362673d4bcedb4fd1c554282df57e72f24530d7.tar.zst
nixlib-8362673d4bcedb4fd1c554282df57e72f24530d7.zip
nload: Include patch to fix screen corruption. (#48017)
See added comment for details.
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/networking/nload/default.nix15
1 files changed, 14 insertions, 1 deletions
diff --git a/pkgs/applications/networking/nload/default.nix b/pkgs/applications/networking/nload/default.nix
index 879461c8acd5..2c16fabc5c41 100644
--- a/pkgs/applications/networking/nload/default.nix
+++ b/pkgs/applications/networking/nload/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, ncurses }:
+{ stdenv, fetchurl, fetchpatch, ncurses }:
 
 stdenv.mkDerivation rec {
   version = "0.7.4";
@@ -9,6 +9,19 @@ stdenv.mkDerivation rec {
     sha256 = "1rb9skch2kgqzigf19x8bzk211jdfjfdkrcvaqyj89jy2pkm3h61";
   };
 
+  patches = [
+    # Fixes an ugly bug of graphs scrolling to the side, corrupting the view.
+    # There is an upstream fix, but not a new upstream release that includes it.
+    # Other distributions like Gentoo also patch this as a result; see:
+    #   https://github.com/rolandriegel/nload/issues/3#issuecomment-427579143
+    # TODO Remove when https://github.com/rolandriegel/nload/issues/3 is merged and available
+    (fetchpatch {
+      url = "https://github.com/rolandriegel/nload/commit/8a93886e0fb33a81b8fe32e88ee106a581fedd34.patch";
+      name = "nload-0.7.4-Eliminate-flicker-on-some-terminals.patch";
+      sha256 = "10yppy5l50wzpcvagsqkbyf1rcan6aj30am4rw8hmkgnbidf4zbq";
+    })
+  ];
+
   buildInputs = [ ncurses ];
 
   meta = {