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

36 lines
1018 B
Nix
Raw Normal View History

2017-09-27 14:46:36 -07:00
{ stdenv, fetchurl, gnutls, pkgconfig, readline, zlib, libidn2, gmp, libiconv, libunistring, gettext }:
stdenv.mkDerivation rec {
name = "lftp-${version}";
2017-11-11 14:37:41 -08:00
version = "4.8.3";
src = fetchurl {
2014-11-15 17:30:03 -08:00
urls = [
2017-11-11 14:37:41 -08:00
"https://lftp.tech/ftp/${name}.tar.xz"
"https://ftp.st.ryukoku.ac.jp/pub/network/ftp/lftp/${name}.tar.xz"
"https://lftp.yar.ru/ftp/${name}.tar.xz"
2014-11-15 17:30:03 -08:00
];
2017-11-11 14:37:41 -08:00
sha256 = "12y77jlfs4x4zvcah92mw2h2sb4j0bvbaxkh3wwsm8gs392ywyny";
};
2016-04-12 11:29:40 -07:00
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ gnutls readline zlib libidn2 gmp libiconv libunistring gettext ];
hardeningDisable = stdenv.lib.optional stdenv.isDarwin "format";
2016-04-12 11:29:40 -07:00
configureFlags = [
"--with-readline=${readline.dev}"
2016-04-12 11:29:40 -07:00
];
installFlags = [ "PREFIX=$(out)" ];
2016-10-23 09:02:42 -07:00
2014-04-13 13:23:23 -07:00
meta = with stdenv.lib; {
description = "A file transfer program supporting a number of network protocols";
2017-11-11 14:37:41 -08:00
homepage = https://lftp.tech/;
2014-04-13 13:23:23 -07:00
license = licenses.gpl3;
2016-10-23 09:02:42 -07:00
platforms = platforms.unix;
2014-04-13 13:23:23 -07:00
maintainers = [ maintainers.bjornfor ];
};
}