nixpkgs/pkgs/tools/networking/lftp/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
1.0 KiB
Nix
Raw Normal View History

2021-01-17 03:51:22 +00:00
{ lib, stdenv, fetchurl, gnutls, pkg-config, readline, zlib, libidn2, gmp, libiconv, libunistring, gettext }:
stdenv.mkDerivation rec {
pname = "lftp";
2020-08-26 09:34:13 +00:00
version = "4.9.2";
src = fetchurl {
2014-11-16 01:30:03 +00:00
urls = [
"https://lftp.yar.ru/ftp/${pname}-${version}.tar.xz"
"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";
};
2021-01-17 03:51:22 +00:00
nativeBuildInputs = [ pkg-config ];
buildInputs = [ gnutls readline zlib libidn2 gmp libiconv libunistring gettext ];
2021-01-15 09:19:50 +00:00
hardeningDisable = lib.optional stdenv.isDarwin "format";
2016-04-12 18:29:40 +00:00
configureFlags = [
"--with-readline=${readline.dev}"
"--with-zlib=${zlib.dev}"
"--without-expat"
2016-04-12 18:29:40 +00:00
];
installFlags = [ "PREFIX=$(out)" ];
2016-10-23 16:02:42 +00:00
enableParallelBuilding = true;
meta = with lib; {
description = "A file transfer program supporting a number of network protocols";
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 ];
};
}