nload: add patch to enable darwin and enable darwin

authored by Finn Behrens and committed by Weijia Wang 9673ba41 1a6b49ed

+17 -2
+17 -2
pkgs/applications/networking/nload/default.nix
··· 1 - { lib, stdenv, fetchurl, fetchpatch, ncurses }: 2 3 stdenv.mkDerivation rec { 4 version = "0.7.4"; ··· 20 name = "nload-0.7.4-Eliminate-flicker-on-some-terminals.patch"; 21 sha256 = "10yppy5l50wzpcvagsqkbyf1rcan6aj30am4rw8hmkgnbidf4zbq"; 22 }) 23 ]; 24 25 buildInputs = [ ncurses ]; 26 27 meta = { ··· 34 ''; 35 homepage = "http://www.roland-riegel.de/nload/index.html"; 36 license = lib.licenses.gpl2; 37 - platforms = lib.platforms.linux; 38 maintainers = [ lib.maintainers.devhell ]; 39 mainProgram = "nload"; 40 };
··· 1 + { lib, stdenv, fetchurl, fetchpatch, ncurses, autoreconfHook }: 2 3 stdenv.mkDerivation rec { 4 version = "0.7.4"; ··· 20 name = "nload-0.7.4-Eliminate-flicker-on-some-terminals.patch"; 21 sha256 = "10yppy5l50wzpcvagsqkbyf1rcan6aj30am4rw8hmkgnbidf4zbq"; 22 }) 23 + # Patches configure.in file to make configure compile on macOS. 24 + # Patch taken from MacPorts. 25 + (fetchpatch { 26 + url = "https://github.com/macports/macports-ports/raw/28814c34711e7545929fd391feb6ce079bd73fd4/net/nload/files/patch-configure.in.diff"; 27 + extraPrefix = ""; 28 + hash = "sha256-lGbBG5ZOgMVnrwlwXVFGbUZx6RkmQwYSVLB3oqkAWRs="; 29 + }) 30 + # Fixes crash on F2 and garbage in adapter name. 31 + # Patch taken from Homebrew. 32 + (fetchpatch { 33 + url = "https://sourceforge.net/p/nload/bugs/_discuss/thread/c9b68d8e/4a65/attachment/devreader-bsd.cpp.patch"; 34 + extraPrefix = ""; 35 + hash = "sha256-umRQDqcRUOGELOx5iB6CPFRkjaD8HXkMCWiKsYdaUa0="; 36 + }) 37 ]; 38 39 + nativeBuildInputs = lib.optional stdenv.isDarwin autoreconfHook; 40 buildInputs = [ ncurses ]; 41 42 meta = { ··· 49 ''; 50 homepage = "http://www.roland-riegel.de/nload/index.html"; 51 license = lib.licenses.gpl2; 52 + platforms = lib.platforms.unix; 53 maintainers = [ lib.maintainers.devhell ]; 54 mainProgram = "nload"; 55 };