mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-09 14:33:22 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
52 lines
1.5 KiB
Nix
52 lines
1.5 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, installShellFiles
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "nuttcp";
|
|
version = "8.2.2";
|
|
|
|
src = fetchurl {
|
|
url = "http://nuttcp.net/nuttcp/nuttcp-${version}.tar.bz2";
|
|
sha256 = "sha256-fq16ieeqoFnSDjQELFihmMKYHK1ylVDROI3fyQNtOYM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
installShellFiles
|
|
];
|
|
|
|
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp nuttcp-${version} $out/bin/nuttcp
|
|
'';
|
|
|
|
postInstall = ''
|
|
installManPage nuttcp.8
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Network performance measurement tool";
|
|
longDescription = ''
|
|
nuttcp is a network performance measurement tool intended for use by
|
|
network and system managers. Its most basic usage is to determine the raw
|
|
TCP (or UDP) network layer throughput by transferring memory buffers from
|
|
a source system across an interconnecting network to a destination
|
|
system, either transferring data for a specified time interval, or
|
|
alternatively transferring a specified number of bytes. In addition to
|
|
reporting the achieved network throughput in Mbps, nuttcp also provides
|
|
additional useful information related to the data transfer such as user,
|
|
system, and wall-clock time, transmitter and receiver CPU utilization,
|
|
and loss percentage (for UDP transfers).
|
|
'';
|
|
license = licenses.gpl2Only;
|
|
homepage = "http://nuttcp.net/";
|
|
maintainers = [ ];
|
|
platforms = platforms.unix;
|
|
mainProgram = "nuttcp";
|
|
};
|
|
}
|