uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
40
pkgs/applications/networking/nload/default.nix
Normal file
40
pkgs/applications/networking/nload/default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ lib, stdenv, fetchurl, fetchpatch, ncurses }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "0.7.4";
|
||||
pname = "nload";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.roland-riegel.de/nload/${pname}-${version}.tar.gz";
|
||||
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 = {
|
||||
description = "Monitors network traffic and bandwidth usage with ncurses graphs";
|
||||
longDescription = ''
|
||||
nload is a console application which monitors network traffic and
|
||||
bandwidth usage in real time. It visualizes the in- and outgoing traffic
|
||||
using two graphs and provides additional info like total amount of
|
||||
transfered data and min/max network usage.
|
||||
'';
|
||||
homepage = "http://www.roland-riegel.de/nload/index.html";
|
||||
license = lib.licenses.gpl2;
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = [ lib.maintainers.devhell ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue