summary refs log tree commit diff
path: root/pkgs/tools/networking/sockperf/default.nix
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2021-07-29 00:01:33 +0000
committerGitHub <noreply@github.com>2021-07-29 00:01:33 +0000
commit4fc7a31edb195d666c4e782c56cd5ad32f8ab3bc (patch)
tree009d65e0b0351612af7de7970317a9890fdc1657 /pkgs/tools/networking/sockperf/default.nix
parent6fcda9f1ec27db14412a2103281b4b14f806066a (diff)
parentdb809100db91e97c118a70c3879307afdbf1dbb7 (diff)
downloadnixpkgs-4fc7a31edb195d666c4e782c56cd5ad32f8ab3bc.tar
nixpkgs-4fc7a31edb195d666c4e782c56cd5ad32f8ab3bc.tar.gz
nixpkgs-4fc7a31edb195d666c4e782c56cd5ad32f8ab3bc.tar.bz2
nixpkgs-4fc7a31edb195d666c4e782c56cd5ad32f8ab3bc.tar.lz
nixpkgs-4fc7a31edb195d666c4e782c56cd5ad32f8ab3bc.tar.xz
nixpkgs-4fc7a31edb195d666c4e782c56cd5ad32f8ab3bc.tar.zst
nixpkgs-4fc7a31edb195d666c4e782c56cd5ad32f8ab3bc.zip
Merge master into staging-next
Diffstat (limited to 'pkgs/tools/networking/sockperf/default.nix')
-rw-r--r--pkgs/tools/networking/sockperf/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/tools/networking/sockperf/default.nix b/pkgs/tools/networking/sockperf/default.nix
new file mode 100644
index 00000000000..d58bcb2f3ca
--- /dev/null
+++ b/pkgs/tools/networking/sockperf/default.nix
@@ -0,0 +1,31 @@
+{ lib, stdenv, fetchFromGitHub, autoreconfHook, doxygen
+, enableTool ? false
+, enableTest ? false }:
+
+stdenv.mkDerivation rec {
+  pname = "sockperf";
+  version = "3.7";
+
+  src = fetchFromGitHub {
+    owner = "Mellanox";
+    repo = "sockperf";
+    rev = version;
+    sha256 = "MtpV21lCEAv7ARxk0dAxoOxxlqDM+skdQnPlqOvksjw=";
+  };
+
+  nativeBuildInputs = [ autoreconfHook doxygen ];
+
+  configureFlags = [ "--enable-doc" ]
+    ++ lib.optional enableTest "--enable-test"
+    ++ lib.optional enableTool "--enable-tool";
+
+  doCheck = true;
+
+  meta = with lib; {
+    description = "Network Benchmarking Utility";
+    homepage = "https://github.com/Mellanox/sockperf";
+    license = licenses.bsd3;
+    maintainers = with maintainers; [ angustrau ];
+    platforms = platforms.all;
+  };
+}