2023-07-28 19:33:44 +00:00
|
|
|
{ lib, stdenv, fetchurl, openssl, pkg-config, readline, zlib, libidn2, gmp, libiconv, libunistring, gettext }:
|
2011-06-13 22:14:06 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "lftp";
|
2020-08-26 09:34:13 +00:00
|
|
|
version = "4.9.2";
|
2007-08-04 12:40:45 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-11-16 01:30:03 +00:00
|
|
|
urls = [
|
2019-08-15 12:41:18 +00:00
|
|
|
"https://lftp.yar.ru/ftp/${pname}-${version}.tar.xz"
|
2022-02-05 18:37:49 +00:00
|
|
|
"https://ftp.st.ryukoku.ac.jp/pub/network/ftp/lftp/${pname}-${version}.tar.xz"
|
2014-11-16 01:30:03 +00:00
|
|
|
];
|
2020-08-26 09:34:13 +00:00
|
|
|
sha256 = "03b7y0h3mf4jfq5y8zw6hv9v44z3n6i8hc1iswax96y3z7sc85y5";
|
2007-08-04 12:40:45 +00:00
|
|
|
};
|
|
|
|
|
2021-01-17 03:51:22 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2017-09-01 02:31:37 +00:00
|
|
|
|
2023-07-28 19:33:44 +00:00
|
|
|
buildInputs = [ openssl readline zlib libidn2 gmp libiconv libunistring gettext ];
|
2017-09-01 02:31:37 +00:00
|
|
|
|
2021-01-15 09:19:50 +00:00
|
|
|
hardeningDisable = lib.optional stdenv.hostPlatform.isDarwin "format";
|
2016-04-12 18:29:40 +00:00
|
|
|
|
2023-11-08 23:21:00 +00:00
|
|
|
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
|
|
|
|
# Required to build with clang 16 or `configure` will fail to detect several standard functions.
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
|
|
|
|
};
|
|
|
|
|
2016-04-12 18:29:40 +00:00
|
|
|
configureFlags = [
|
2023-07-28 19:33:44 +00:00
|
|
|
"--with-openssl"
|
2016-08-23 00:35:54 +00:00
|
|
|
"--with-readline=${readline.dev}"
|
2019-02-20 20:02:34 +00:00
|
|
|
"--with-zlib=${zlib.dev}"
|
|
|
|
"--without-expat"
|
2016-04-12 18:29:40 +00:00
|
|
|
];
|
2013-01-28 13:12:29 +00:00
|
|
|
|
2017-03-06 20:35:16 +00:00
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
2016-10-23 16:02:42 +00:00
|
|
|
|
2019-02-20 20:02:34 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2013-01-28 13:12:29 +00:00
|
|
|
description = "File transfer program supporting a number of network protocols";
|
2022-02-05 18:37:49 +00:00
|
|
|
homepage = "https://lftp.yar.ru/";
|
|
|
|
license = licenses.gpl3Plus;
|
2016-10-23 16:02:42 +00:00
|
|
|
platforms = platforms.unix;
|
2014-04-13 20:23:23 +00:00
|
|
|
maintainers = [ maintainers.bjornfor ];
|
2013-01-28 13:12:29 +00:00
|
|
|
};
|
2007-08-04 12:40:45 +00:00
|
|
|
}
|