From 8ea138d2121c008cb009fa0f34917ff560af182b Mon Sep 17 00:00:00 2001 From: Domen Kozar Date: Sat, 20 Jul 2013 12:45:33 +0200 Subject: [PATCH] add development version of speedtest-cli --- .../networking/speedtest-cli/default.nix | 26 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/tools/networking/speedtest-cli/default.nix diff --git a/pkgs/tools/networking/speedtest-cli/default.nix b/pkgs/tools/networking/speedtest-cli/default.nix new file mode 100644 index 000000000000..15ca99f47e9e --- /dev/null +++ b/pkgs/tools/networking/speedtest-cli/default.nix @@ -0,0 +1,26 @@ +{ stdenv, fetchgit, pythonPackages }: + +stdenv.mkDerivation rec { + name = "speedtest-cli-dev"; + + src = fetchgit { + url = "https://github.com/sivel/speedtest-cli.git"; + rev = "fe0940c5744ebe74ca31ad44e6b181d82a89edab"; + sha256 = "0iywcmgqi58bhldcf8qn1nr7mihypi5fp9s13d4vqc7797xvb28k"; + }; + + buildInputs = [ pythonPackages.python ]; + + installPhase = '' + mkdir -p $out/bin + cp speedtest-cli $out/bin/ + ''; + + meta = with stdenv.lib; { + homepage = https://github.com/sivel/speedtest-cli; + description = "Command line interface for testing internet bandwidth using speedtest.net"; + platforms = platforms.all; + license = licenses.asl20; + maintainers = [ maintainers.iElectric ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ded923ac511f..7afc75b0a57a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3587,6 +3587,8 @@ let sparse = callPackage ../development/tools/analysis/sparse { }; + speedtest_cli = callPackage ../tools/networking/speedtest-cli { }; + spin = callPackage ../development/tools/analysis/spin { }; splint = callPackage ../development/tools/analysis/splint { };