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