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