Unbork journals audit logs and introduce audit option (#379629)
[NixPkgs.git] / pkgs / by-name / lf / lftp / package.nix
blob37654dd957d96d24d9e1ab78428619b9571069bc
2   lib,
3   stdenv,
4   fetchurl,
5   openssl,
6   pkg-config,
7   readline,
8   zlib,
9   libidn2,
10   gmp,
11   libiconv,
12   libunistring,
13   gettext,
16 stdenv.mkDerivation rec {
17   pname = "lftp";
18   version = "4.9.3";
20   src = fetchurl {
21     urls = [
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"
24     ];
25     sha256 = "sha256-lucZnXk1vjPPaxFh6VWyqrQKt37N8qGc6k/BGT9Fftw=";
26   };
28   nativeBuildInputs = [ pkg-config ];
30   buildInputs = [
31     openssl
32     readline
33     zlib
34     libidn2
35     gmp
36     libiconv
37     libunistring
38     gettext
39   ];
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";
46   };
48   configureFlags = [
49     "--with-openssl"
50     "--with-readline=${readline.dev}"
51     "--with-zlib=${zlib.dev}"
52     "--without-expat"
53   ];
55   installFlags = [ "PREFIX=$(out)" ];
57   enableParallelBuilding = true;
59   meta = with lib; {
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 ];
65   };