2016-10-23 19:02:42 +03:00
|
|
|
{ stdenv, fetchurl, gnutls, pkgconfig, readline, zlib, libidn, gmp, libiconv }:
|
2011-06-14 02:14:06 +04:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-03-06 23:35:16 +03:00
|
|
|
name = "lftp-${version}";
|
2017-07-17 06:16:01 +03:00
|
|
|
version = "4.8.0";
|
2007-08-04 16:40:45 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-11-16 04:30:03 +03:00
|
|
|
urls = [
|
2017-03-06 23:35:16 +03:00
|
|
|
"https://lftp.tech/ftp/${name}.tar.bz2"
|
|
|
|
"ftp://ftp.st.ryukoku.ac.jp/pub/network/ftp/lftp/${name}.tar.bz2"
|
2014-11-16 04:30:03 +03:00
|
|
|
"http://lftp.yar.ru/ftp/old/${name}.tar.bz2"
|
|
|
|
];
|
2017-07-17 06:16:01 +03:00
|
|
|
sha256 = "0z2432zxzg808swi72yak9kia976qrjj030grk0v4p54mcib3s34";
|
2007-08-04 16:40:45 +04:00
|
|
|
};
|
|
|
|
|
2016-04-12 21:29:40 +03:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2016-10-23 19:02:42 +03:00
|
|
|
buildInputs = [ gnutls readline zlib libidn gmp libiconv ];
|
2016-04-12 21:29:40 +03:00
|
|
|
|
|
|
|
configureFlags = [
|
2016-08-23 03:35:54 +03:00
|
|
|
"--with-readline=${readline.dev}"
|
2016-04-12 21:29:40 +03:00
|
|
|
];
|
2013-01-28 17:12:29 +04:00
|
|
|
|
2017-03-06 23:35:16 +03:00
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
2016-10-23 19:02:42 +03:00
|
|
|
|
2014-04-14 00:23:23 +04:00
|
|
|
meta = with stdenv.lib; {
|
2013-01-28 17:12:29 +04:00
|
|
|
description = "A file transfer program supporting a number of network protocols";
|
2017-03-06 23:35:16 +03:00
|
|
|
homepage = http://lftp.tech/;
|
2014-04-14 00:23:23 +04:00
|
|
|
license = licenses.gpl3;
|
2016-10-23 19:02:42 +03:00
|
|
|
platforms = platforms.unix;
|
2014-04-14 00:23:23 +04:00
|
|
|
maintainers = [ maintainers.bjornfor ];
|
2013-01-28 17:12:29 +04:00
|
|
|
};
|
2007-08-04 16:40:45 +04:00
|
|
|
}
|