2017-09-27 14:46:36 -07:00
|
|
|
{ stdenv, fetchurl, gnutls, pkgconfig, readline, zlib, libidn2, gmp, libiconv, libunistring, gettext }:
|
2011-06-13 15:14:06 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "lftp";
|
2018-08-08 13:16:05 -07:00
|
|
|
version = "4.8.4";
|
2007-08-04 05:40:45 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-11-15 17:30:03 -08:00
|
|
|
urls = [
|
2019-08-15 05:41:18 -07: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-15 17:30:03 -08:00
|
|
|
];
|
2018-08-08 13:16:05 -07:00
|
|
|
sha256 = "0qks22357xv9y6ripmf5j2n5svh8j5z0yniphfk89sjwkqg2gg2f";
|
2007-08-04 05:40:45 -07:00
|
|
|
};
|
|
|
|
|
2016-04-12 11:29:40 -07:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2017-08-31 19:31:37 -07:00
|
|
|
|
2018-03-14 15:58:20 -07:00
|
|
|
buildInputs = [ gnutls readline zlib libidn2 gmp libiconv libunistring gettext ];
|
2017-08-31 19:31:37 -07:00
|
|
|
|
|
|
|
hardeningDisable = stdenv.lib.optional stdenv.isDarwin "format";
|
2016-04-12 11:29:40 -07:00
|
|
|
|
|
|
|
configureFlags = [
|
2016-08-22 17:35:54 -07:00
|
|
|
"--with-readline=${readline.dev}"
|
2019-02-20 12:02:34 -08:00
|
|
|
"--with-zlib=${zlib.dev}"
|
|
|
|
"--without-expat"
|
2016-04-12 11:29:40 -07:00
|
|
|
];
|
2013-01-28 05:12:29 -08:00
|
|
|
|
2017-03-06 12:35:16 -08:00
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
2016-10-23 09:02:42 -07:00
|
|
|
|
2019-02-20 12:02:34 -08:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2014-04-13 13:23:23 -07:00
|
|
|
meta = with stdenv.lib; {
|
2013-01-28 05:12:29 -08:00
|
|
|
description = "A file transfer program supporting a number of network protocols";
|
2017-11-11 14:37:41 -08:00
|
|
|
homepage = https://lftp.tech/;
|
2014-04-13 13:23:23 -07:00
|
|
|
license = licenses.gpl3;
|
2016-10-23 09:02:42 -07:00
|
|
|
platforms = platforms.unix;
|
2014-04-13 13:23:23 -07:00
|
|
|
maintainers = [ maintainers.bjornfor ];
|
2013-01-28 05:12:29 -08:00
|
|
|
};
|
2007-08-04 05:40:45 -07:00
|
|
|
}
|