summary refs log tree commit diff
path: root/pkgs/tools/networking/nttcp/default.nix
blob: c5a4c4c1cd1f3ec01ec69f39bd2a08cd8eab7a98 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ lib, stdenv, fetchurl }:

stdenv.mkDerivation rec {
  pname = "nttcp";
  version = "1.47";

  src = fetchurl {
    url = "https://deb.debian.org/debian/pool/non-free/n/nttcp/nttcp_${version}.orig.tar.gz";
    sha256 = "1bl17dsd53lbpjdqfmpgpd7dms6d2w3scpg7ki7qgfjhs8sarq50";
  };

  patches = [
    # Fix format string compiler error
    ./format-security.patch
  ];

  makeFlags = [
    "prefix=${placeholder "out"}"
  ];

  meta = with lib; {
    description = "New test TCP program";
    license = licenses.unfree;
    maintainers = with maintainers; [ angustrau ];
    platforms = platforms.all;
  };
}