Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

speedometer: init at 2.8 #33627

Merged
merged 2 commits into from Nov 17, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
26 changes: 26 additions & 0 deletions 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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -13083,6 +13083,8 @@ with pkgs;

smem = callPackage ../os-specific/linux/smem { };

speedometer = callPackage ../os-specific/linux/speedometer { };

statifier = callPackage ../os-specific/linux/statifier { };

inherit (callPackage ../os-specific/linux/spl {
Expand Down