git.iko.soy/typeable/nixpkgs
on master help sign in
nload: Include patch to fix screen corruption. (#48017)

See added comment for details.

commit8362673d4bcedb4fd1c554282df57e72f24530d7 authorNiklas Hambüchen <mail@nh2.me> dateThu 11 Oct 2018, 14:37 (8 years ago) parente820c4c
1 file changed+14−1
pkgs/applications/networking/nload/default.nix+14−1
pkgs/applications/networking/nload/default.nix+14−1
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, ncurses }:
1+{ stdenv, fetchurl, fetchpatch, ncurses }:
22
33stdenv.mkDerivation rec {
44 version = "0.7.4";
@@ -9,6 +9,19 @@ stdenv.mkDerivation rec {
99 sha256 = "1rb9skch2kgqzigf19x8bzk211jdfjfdkrcvaqyj89jy2pkm3h61";
1010 };
1111
12+ patches = [
13+ # Fixes an ugly bug of graphs scrolling to the side, corrupting the view.
14+ # There is an upstream fix, but not a new upstream release that includes it.
15+ # Other distributions like Gentoo also patch this as a result; see:
16+ # https://github.com/rolandriegel/nload/issues/3#issuecomment-427579143
17+ # TODO Remove when https://github.com/rolandriegel/nload/issues/3 is merged and available
18+ (fetchpatch {
19+ url = "https://github.com/rolandriegel/nload/commit/8a93886e0fb33a81b8fe32e88ee106a581fedd34.patch";
20+ name = "nload-0.7.4-Eliminate-flicker-on-some-terminals.patch";
21+ sha256 = "10yppy5l50wzpcvagsqkbyf1rcan6aj30am4rw8hmkgnbidf4zbq";
22+ })
23+ ];
24+
1225 buildInputs = [ ncurses ];
1326
1427 meta = {