2014-08-24 13:19:55 +01:00
|
|
|
{ stdenv, fetchurl, pcre, readline }:
|
2011-08-29 13:47:39 +01:00
|
|
|
|
2014-08-24 13:19:55 +01:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "atftp-0.7.1";
|
2011-08-29 13:47:39 +01:00
|
|
|
|
2014-08-24 13:19:55 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/atftp/atftp-0.7.1.tar.gz";
|
|
|
|
sha256 = "0bgr31gbnr3qx4ixf8hz47l58sh3367xhcnfqd8233fvr84nyk5f";
|
2011-08-29 14:17:44 +01:00
|
|
|
};
|
|
|
|
|
2014-08-24 13:19:55 +01:00
|
|
|
buildInputs = [ pcre readline ];
|
2014-08-09 13:08:57 +01:00
|
|
|
|
2014-08-24 13:19:55 +01:00
|
|
|
NIX_LDFLAGS = "-lgcc_s"; # for pthread_cancel
|
2011-08-29 13:47:39 +01:00
|
|
|
|
2014-08-24 13:19:55 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-libreadline"
|
|
|
|
"--enable-libpcre"
|
|
|
|
"--enable-mtftp"
|
|
|
|
];
|
2011-08-29 13:47:39 +01:00
|
|
|
|
2014-08-24 13:19:55 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Advanced TFTP server and client";
|
|
|
|
homepage = http://sourceforge.net/projects/atftp/;
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|