16 stdenv.mkDerivation rec {
22 "https://lftp.yar.ru/ftp/${pname}-${version}.tar.xz"
23 "https://ftp.st.ryukoku.ac.jp/pub/network/ftp/lftp/${pname}-${version}.tar.xz"
25 sha256 = "sha256-lucZnXk1vjPPaxFh6VWyqrQKt37N8qGc6k/BGT9Fftw=";
28 nativeBuildInputs = [ pkg-config ];
41 hardeningDisable = lib.optional stdenv.hostPlatform.isDarwin "format";
43 env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
44 # Required to build with clang 16 or `configure` will fail to detect several standard functions.
45 NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
50 "--with-readline=${readline.dev}"
51 "--with-zlib=${zlib.dev}"
55 installFlags = [ "PREFIX=$(out)" ];
57 enableParallelBuilding = true;
60 description = "File transfer program supporting a number of network protocols";
61 homepage = "https://lftp.yar.ru/";
62 license = licenses.gpl3Plus;
63 platforms = platforms.unix;
64 maintainers = [ maintainers.bjornfor ];