diff --git a/pkgs/os-specific/linux/speedometer/default.nix b/pkgs/os-specific/linux/speedometer/default.nix new file mode 100644 index 000000000000..f9c971502921 --- /dev/null +++ b/pkgs/os-specific/linux/speedometer/default.nix @@ -0,0 +1,26 @@ +{ stdenv, lib, fetchurl, pythonPackages }: + +pythonPackages.buildPythonApplication rec { + name = "speedometer-${version}"; + version = "2.8"; + + src = fetchurl { + url = "http://excess.org/speedometer/speedometer-${version}.tar.gz"; + sha256 = "060bikv3gwr203jbdmvawsfhc0yq0bg1m42dk8czx1nqvwvgv6fm"; + }; + + propagatedBuildInputs = [ pythonPackages.urwid ]; + + postPatch = '' + sed -i "/'entry_points': {/d" setup.py + sed -i "/'console_scripts': \['speedometer = speedometer:console'\],},/d" setup.py + ''; + + meta = with lib; { + description = "Measure and display the rate of data across a network connection or data being stored in a file"; + homepage = http://excess.org/speedometer/; + license = licenses.lgpl21Plus; + platforms = platforms.linux; + maintainers = with maintainers; [ Baughn ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b99289fb88e8..96cd87472141 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14965,6 +14965,8 @@ with pkgs; smem = callPackage ../os-specific/linux/smem { }; + speedometer = callPackage ../os-specific/linux/speedometer { }; + statifier = callPackage ../os-specific/linux/statifier { }; sysdig = callPackage ../os-specific/linux/sysdig {