summary refs log tree commit diff
path: root/pkgs/tools/networking
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2021-04-22 05:39:12 +0200
committerGitHub <noreply@github.com>2021-04-22 05:39:12 +0200
commit391c5fcb5af55c05d7b65b67758175ad7b9900e5 (patch)
tree7c75a6e9f5c99ee5eaee5d7470ad14d9d9597d76 /pkgs/tools/networking
parent54d8941a0d2cb8b7b6a1fd0a9e11d1c8da9cf378 (diff)
downloadnixpkgs-391c5fcb5af55c05d7b65b67758175ad7b9900e5.tar
nixpkgs-391c5fcb5af55c05d7b65b67758175ad7b9900e5.tar.gz
nixpkgs-391c5fcb5af55c05d7b65b67758175ad7b9900e5.tar.bz2
nixpkgs-391c5fcb5af55c05d7b65b67758175ad7b9900e5.tar.lz
nixpkgs-391c5fcb5af55c05d7b65b67758175ad7b9900e5.tar.xz
nixpkgs-391c5fcb5af55c05d7b65b67758175ad7b9900e5.tar.zst
nixpkgs-391c5fcb5af55c05d7b65b67758175ad7b9900e5.zip
anevicon: init at 0.1.0 (#120043)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/tools/networking')
-rw-r--r--pkgs/tools/networking/anevicon/default.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/tools/networking/anevicon/default.nix b/pkgs/tools/networking/anevicon/default.nix
new file mode 100644
index 00000000000..95a4bbe9fb8
--- /dev/null
+++ b/pkgs/tools/networking/anevicon/default.nix
@@ -0,0 +1,39 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, fetchpatch
+, rustPlatform
+, Security
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "anevicon";
+  version = "0.1.0";
+
+  src = fetchFromGitHub {
+    owner = "rozgo";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "1m3ci7g7nn28p6x5m85av3ljgszwlg55f1hmgjnarc6bas5bapl7";
+  };
+
+  cargoSha256 = "1g15v13ysx09fy0b8qddw5fwql2pvwzc2g2h1ndhzpxvfy7fzpr1";
+
+  buildInputs = lib.optionals stdenv.isDarwin [ Security ];
+
+  cargoPatches = [
+    # Add Cargo.lock file, https://github.com/rozgo/anevicon/pull/1
+    (fetchpatch {
+      name = "cargo-lock-file.patch";
+      url = "https://github.com/rozgo/anevicon/commit/205440a0863aaea34394f30f4255fa0bb1704aed.patch";
+      sha256 = "02syzm7irn4slr3s5dwwhvg1qx8fdplwlhza8gfkc6ajl7vdc7ri";
+    })
+  ];
+
+  meta = with lib; {
+    description = "UDP-based load generator";
+    homepage = "https://github.com/rozgo/anevicon";
+    license = licenses.gpl3Only;
+    maintainers = with maintainers; [ fab ];
+  };
+}