nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 44 lines 906 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 autoreconfHook, 6 doxygen, 7 enableTool ? false, 8 enableTest ? false, 9}: 10 11stdenv.mkDerivation (finalAttrs: { 12 pname = "sockperf"; 13 version = "3.10"; 14 15 src = fetchFromGitHub { 16 owner = "Mellanox"; 17 repo = "sockperf"; 18 rev = finalAttrs.version; 19 sha256 = "sha256-VvxL/bcn69uL7CBpDu4qwbKZwlC4N/kNeRX4k3UzxPI="; 20 }; 21 22 nativeBuildInputs = [ 23 autoreconfHook 24 doxygen 25 ]; 26 27 configureFlags = [ 28 "--enable-doc" 29 ] 30 ++ lib.optional enableTest "--enable-test" 31 ++ lib.optional enableTool "--enable-tool"; 32 33 doCheck = true; 34 35 meta = { 36 broken = stdenv.hostPlatform.isDarwin; 37 description = "Network Benchmarking Utility"; 38 homepage = "https://github.com/Mellanox/sockperf"; 39 license = lib.licenses.bsd3; 40 maintainers = with lib.maintainers; [ emilytrau ]; 41 platforms = lib.platforms.all; 42 mainProgram = "sockperf"; 43 }; 44})