mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
gping: init at 1.1
gping is a utility to display a graph of ping timing in a terminal
This commit is contained in:
parent
0c4887c646
commit
855d370a20
33
pkgs/tools/networking/gping/default.nix
Normal file
33
pkgs/tools/networking/gping/default.nix
Normal file
@ -0,0 +1,33 @@
|
||||
{ stdenv
|
||||
, lib
|
||||
, iputils
|
||||
, python3
|
||||
, python3Packages
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "gping";
|
||||
version = "1.1";
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [ colorama ];
|
||||
|
||||
src = python3Packages.fetchPypi {
|
||||
inherit version;
|
||||
pname = "pinggraph";
|
||||
sha256 = "0q5ma98457zb6vxsnhmrr3p38j1vg0gl155y0adzfg67wlniac92";
|
||||
};
|
||||
|
||||
# Make path to ping explicit
|
||||
postFixup = ''
|
||||
substituteInPlace $out/${python3.sitePackages}/gping/pinger.py \
|
||||
--replace 'subprocess.getoutput("ping ' 'subprocess.getoutput("${iputils}/bin/ping ' \
|
||||
--replace 'args = ["ping"]' 'args = ["${iputils}/bin/ping"]'
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Ping, but with a graph";
|
||||
homepage = https://github.com/orf/gping;
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ andrew-d ];
|
||||
};
|
||||
}
|
@ -1477,6 +1477,8 @@ in
|
||||
|
||||
gosu = callPackage ../tools/misc/gosu { };
|
||||
|
||||
gping = callPackage ../tools/networking/gping { };
|
||||
|
||||
greg = callPackage ../applications/audio/greg {
|
||||
pythonPackages = python3Packages;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user