2017-09-27 22:46:36 +01:00
|
|
|
{ stdenv, fetchurl, gnutls, pkgconfig, readline, zlib, libidn2, gmp, libiconv, libunistring, gettext }:
|
2011-06-13 23:14:06 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "lftp";
|
2020-01-16 18:38:04 +00:00
|
|
|
version = "4.9.1";
|
2007-08-04 13:40:45 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-11-16 01:30:03 +00:00
|
|
|
urls = [
|
2019-08-15 13:41:18 +01:00
|
|
|
"https://lftp.tech/ftp/${pname}-${version}.tar.xz"
|
|
|
|
"https://ftp.st.ryukoku.ac.jp/pub/network/ftp/lftp/${pname}-${version}.tar.xz"
|
|
|
|
"https://lftp.yar.ru/ftp/${pname}-${version}.tar.xz"
|
2014-11-16 01:30:03 +00:00
|
|
|
];
|
2020-01-16 18:38:04 +00:00
|
|
|
sha256 = "0jq2g8h1bx06ya9fsja748vwb2qrca4wsfrgi3fmaa8hznpgqsar";
|
2007-08-04 13:40:45 +01:00
|
|
|
};
|
|
|
|
|
2016-04-12 19:29:40 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2017-09-01 03:31:37 +01:00
|
|
|
|
2018-03-14 22:58:20 +00:00
|
|
|
buildInputs = [ gnutls readline zlib libidn2 gmp libiconv libunistring gettext ];
|
2017-09-01 03:31:37 +01:00
|
|
|
|
|
|
|
hardeningDisable = stdenv.lib.optional stdenv.isDarwin "format";
|
2016-04-12 19:29:40 +01:00
|
|
|
|
|
|
|
configureFlags = [
|
2016-08-23 01:35:54 +01:00
|
|
|
"--with-readline=${readline.dev}"
|
2019-02-20 20:02:34 +00:00
|
|
|
"--with-zlib=${zlib.dev}"
|
|
|
|
"--without-expat"
|
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
|
|
|
|
2019-02-20 20:02:34 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
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-11-11 22:37:41 +00:00
|
|
|
homepage = https://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
|
|
|
}
|