1 { lib, stdenv, fetchurl, openssl, pkg-config, readline, zlib, libidn2, gmp, libiconv, libunistring, gettext }:
3 stdenv.mkDerivation rec {
9 "https://lftp.yar.ru/ftp/${pname}-${version}.tar.xz"
10 "https://ftp.st.ryukoku.ac.jp/pub/network/ftp/lftp/${pname}-${version}.tar.xz"
12 sha256 = "03b7y0h3mf4jfq5y8zw6hv9v44z3n6i8hc1iswax96y3z7sc85y5";
15 nativeBuildInputs = [ pkg-config ];
17 buildInputs = [ openssl readline zlib libidn2 gmp libiconv libunistring gettext ];
19 hardeningDisable = lib.optional stdenv.hostPlatform.isDarwin "format";
21 env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
22 # Required to build with clang 16 or `configure` will fail to detect several standard functions.
23 NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
28 "--with-readline=${readline.dev}"
29 "--with-zlib=${zlib.dev}"
33 installFlags = [ "PREFIX=$(out)" ];
35 enableParallelBuilding = true;
38 description = "File transfer program supporting a number of network protocols";
39 homepage = "https://lftp.yar.ru/";
40 license = licenses.gpl3Plus;
41 platforms = platforms.unix;
42 maintainers = [ maintainers.bjornfor ];