about summary refs log tree commit diff
path: root/pkgs/tools/networking/atftp/default.nix
blob: acd71ea893df0ecd379f08740d711d40f936f68b (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
{ stdenv, fetchurl, pcre, readline }:

stdenv.mkDerivation {
  name = "atftp-0.7.1";

  src = fetchurl {
    url = "mirror://sourceforge/atftp/atftp-0.7.1.tar.gz";
    sha256 = "0bgr31gbnr3qx4ixf8hz47l58sh3367xhcnfqd8233fvr84nyk5f";
  };

  buildInputs = [ pcre readline ];

  NIX_LDFLAGS = "-lgcc_s"; # for pthread_cancel

  configureFlags = [
    "--enable-libreadline"
    "--enable-libpcre"
    "--enable-mtftp"
  ];

  meta = with stdenv.lib; {
    description = "Advanced TFTP server and client";
    homepage = http://sourceforge.net/projects/atftp/;
    license = licenses.gpl2Plus;
    platforms = platforms.linux;
  };
}