2023-08-04 22:07:22 +00:00
|
|
|
{ lib, stdenv, fetchurl, openssl, pkg-config, readline, zlib, libidn2, gmp, libiconv, libunistring, gettext }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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.yar.ru/ftp/${pname}-${version}.tar.xz"
|
2022-02-10 20:34:41 +00:00
|
|
|
"https://ftp.st.ryukoku.ac.jp/pub/network/ftp/lftp/${pname}-${version}.tar.xz"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "03b7y0h3mf4jfq5y8zw6hv9v44z3n6i8hc1iswax96y3z7sc85y5";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
buildInputs = [ openssl readline zlib libidn2 gmp libiconv libunistring gettext ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
hardeningDisable = lib.optional stdenv.isDarwin "format";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
env = lib.optionalAttrs stdenv.isDarwin {
|
|
|
|
# Required to build with clang 16 or `configure` will fail to detect several standard functions.
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
|
|
|
|
};
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
configureFlags = [
|
2023-08-04 22:07:22 +00:00
|
|
|
"--with-openssl"
|
2020-04-24 23:36:52 +00:00
|
|
|
"--with-readline=${readline.dev}"
|
|
|
|
"--with-zlib=${zlib.dev}"
|
|
|
|
"--without-expat"
|
|
|
|
];
|
|
|
|
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A file transfer program supporting a number of network protocols";
|
2022-02-10 20:34:41 +00:00
|
|
|
homepage = "https://lftp.yar.ru/";
|
|
|
|
license = licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
};
|
|
|
|
}
|