2017-09-27 14:46:36 -07:00
|
|
|
{ stdenv, fetchurl, gnutls, pkgconfig, readline, zlib, libidn2, gmp, libiconv, libunistring, gettext }:
|
2011-06-13 22:14:06 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-03-06 21:35:16 +01:00
|
|
|
name = "lftp-${version}";
|
2018-08-08 13:16:05 -07:00
|
|
|
version = "4.8.4";
|
2007-08-04 12:40:45 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-11-16 04:30:03 +03:00
|
|
|
urls = [
|
2017-11-11 23:37:41 +01:00
|
|
|
"https://lftp.tech/ftp/${name}.tar.xz"
|
|
|
|
"https://ftp.st.ryukoku.ac.jp/pub/network/ftp/lftp/${name}.tar.xz"
|
2018-06-28 20:43:35 +02:00
|
|
|
"https://lftp.yar.ru/ftp/${name}.tar.xz"
|
2014-11-16 04:30:03 +03:00
|
|
|
];
|
2018-08-08 13:16:05 -07:00
|
|
|
sha256 = "0qks22357xv9y6ripmf5j2n5svh8j5z0yniphfk89sjwkqg2gg2f";
|
2007-08-04 12:40:45 +00:00
|
|
|
};
|
|
|
|
|
2016-04-12 20:29:40 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2017-09-01 12:01:37 +09:30
|
|
|
|
2018-03-14 17:58:20 -05:00
|
|
|
buildInputs = [ gnutls readline zlib libidn2 gmp libiconv libunistring gettext ];
|
2017-09-01 12:01:37 +09:30
|
|
|
|
|
|
|
hardeningDisable = stdenv.lib.optional stdenv.isDarwin "format";
|
2016-04-12 20:29:40 +02:00
|
|
|
|
|
|
|
configureFlags = [
|
2016-08-23 03:35:54 +03:00
|
|
|
"--with-readline=${readline.dev}"
|
2016-04-12 20:29:40 +02:00
|
|
|
];
|
2013-01-28 14:12:29 +01:00
|
|
|
|
2017-03-06 21:35:16 +01:00
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
2016-10-23 18:02:42 +02:00
|
|
|
|
2014-04-13 22:23:23 +02:00
|
|
|
meta = with stdenv.lib; {
|
2013-01-28 14:12:29 +01:00
|
|
|
description = "A file transfer program supporting a number of network protocols";
|
2017-11-11 23:37:41 +01:00
|
|
|
homepage = https://lftp.tech/;
|
2014-04-13 22:23:23 +02:00
|
|
|
license = licenses.gpl3;
|
2016-10-23 18:02:42 +02:00
|
|
|
platforms = platforms.unix;
|
2014-04-13 22:23:23 +02:00
|
|
|
maintainers = [ maintainers.bjornfor ];
|
2013-01-28 14:12:29 +01:00
|
|
|
};
|
2007-08-04 12:40:45 +00:00
|
|
|
}
|