2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchurl, gnutls, pkgconfig, readline, zlib, libidn2, gmp, libiconv, libunistring, gettext }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "lftp";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "4.9.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
urls = [
|
|
|
|
"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"
|
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "03b7y0h3mf4jfq5y8zw6hv9v44z3n6i8hc1iswax96y3z7sc85y5";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
|
|
|
buildInputs = [ gnutls readline zlib libidn2 gmp libiconv libunistring gettext ];
|
|
|
|
|
|
|
|
hardeningDisable = stdenv.lib.optional stdenv.isDarwin "format";
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-readline=${readline.dev}"
|
|
|
|
"--with-zlib=${zlib.dev}"
|
|
|
|
"--without-expat"
|
|
|
|
];
|
|
|
|
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A file transfer program supporting a number of network protocols";
|
|
|
|
homepage = "https://lftp.tech/";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
};
|
|
|
|
}
|