2016-10-23 16:02:42 +00:00
|
|
|
{ stdenv, fetchurl, gnutls, pkgconfig, readline, zlib, libidn, gmp, libiconv }:
|
2011-06-13 22:14:06 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-10-23 16:02:42 +00:00
|
|
|
name = "lftp-4.7.3";
|
2007-08-04 12:40:45 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-11-16 01:30:03 +00:00
|
|
|
urls = [
|
|
|
|
"http://lftp.yar.ru/ftp/${name}.tar.bz2"
|
|
|
|
"http://lftp.yar.ru/ftp/old/${name}.tar.bz2"
|
|
|
|
];
|
2016-10-23 16:02:42 +00:00
|
|
|
sha256 = "06jmc9x86ga67yyx7655zv96gfv1gdm955a7g4afd3bwf6bzfxac";
|
2007-08-04 12:40:45 +00:00
|
|
|
};
|
|
|
|
|
2016-04-12 18:29:40 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2016-10-23 16:02:42 +00:00
|
|
|
buildInputs = [ gnutls readline zlib libidn gmp libiconv ];
|
2016-04-12 18:29:40 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
2016-08-23 00:35:54 +00:00
|
|
|
"--with-readline=${readline.dev}"
|
2016-04-12 18:29:40 +00:00
|
|
|
];
|
2013-01-28 13:12:29 +00:00
|
|
|
|
2016-10-23 16:02:42 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace src/lftp_rl.c --replace 'history.h' 'readline/history.h'
|
|
|
|
'';
|
|
|
|
|
2014-04-13 20:23:23 +00:00
|
|
|
meta = with stdenv.lib; {
|
2013-01-28 13:12:29 +00:00
|
|
|
description = "A file transfer program supporting a number of network protocols";
|
2014-04-13 20:23:23 +00:00
|
|
|
homepage = http://lftp.yar.ru/;
|
|
|
|
license = licenses.gpl3;
|
2016-10-23 16:02:42 +00:00
|
|
|
platforms = platforms.unix;
|
2014-04-13 20:23:23 +00:00
|
|
|
maintainers = [ maintainers.bjornfor ];
|
2013-01-28 13:12:29 +00:00
|
|
|
};
|
2007-08-04 12:40:45 +00:00
|
|
|
}
|