about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJaka Hudoklin <offlinehacker@users.noreply.github.com>2018-07-07 17:03:20 +0200
committerRobert Schütz <rschuetz17@gmail.com>2018-07-07 17:03:20 +0200
commit499203e19934601b95a81f8c62aa418b2bbf16c4 (patch)
treeaac91572f3804abfdf31aa507bc5a3f93f2e2270
parent52d4d737577d9d8ed4c00c4b24c95cd537b685e7 (diff)
downloadnixlib-499203e19934601b95a81f8c62aa418b2bbf16c4.tar
nixlib-499203e19934601b95a81f8c62aa418b2bbf16c4.tar.gz
nixlib-499203e19934601b95a81f8c62aa418b2bbf16c4.tar.bz2
nixlib-499203e19934601b95a81f8c62aa418b2bbf16c4.tar.lz
nixlib-499203e19934601b95a81f8c62aa418b2bbf16c4.tar.xz
nixlib-499203e19934601b95a81f8c62aa418b2bbf16c4.tar.zst
nixlib-499203e19934601b95a81f8c62aa418b2bbf16c4.zip
nyx: init at 2.0.4 (#43139)
-rw-r--r--pkgs/tools/networking/nyx/default.nix25
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/tools/networking/nyx/default.nix b/pkgs/tools/networking/nyx/default.nix
new file mode 100644
index 000000000000..3476e56993bf
--- /dev/null
+++ b/pkgs/tools/networking/nyx/default.nix
@@ -0,0 +1,25 @@
+{ lib, pythonPackages }:
+
+with pythonPackages;
+
+buildPythonApplication rec {
+  pname = "nyx";
+  version = "2.0.4";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "0pm7vfcqr02pzqz4b2f6sw5prxxmgqwr1912am42xmy2i53n7nrq";
+  };
+
+  propagatedBuildInputs = [ stem ];
+
+  # ./run_tests.py returns `TypeError: testFailure() takes exactly 1 argument`
+  doCheck = false;
+
+  meta = with lib; {
+    description = "Command-line monitor for Tor";
+    homepage = https://nyx.torproject.org/;
+    license = licenses.gpl3;
+    maintainers = with maintainers; [ offline ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index f7084b0a5fd2..503ba82c782e 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -1391,6 +1391,8 @@ with pkgs;
 
   nwipe = callPackage ../tools/security/nwipe { };
 
+  nyx = callPackage ../tools/networking/nyx { };
+
   onboard = callPackage ../applications/misc/onboard { };
 
   optar = callPackage ../tools/graphics/optar {};