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

40 lines
1.1 KiB
Nix
Raw Normal View History

2017-09-27 23:46:36 +02:00
{ stdenv, fetchurl, gnutls, pkgconfig, readline, zlib, libidn2, gmp, libiconv, libunistring, gettext }:
stdenv.mkDerivation rec {
name = "lftp-${version}";
version = "4.8.4";
src = fetchurl {
2014-11-16 02:30:03 +01:00
urls = [
2017-11-11 23:37:41 +01: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-16 02:30:03 +01:00
];
sha256 = "0qks22357xv9y6ripmf5j2n5svh8j5z0yniphfk89sjwkqg2gg2f";
};
2016-04-12 20:29:40 +02:00
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ gnutls readline zlib libidn2 gmp libiconv libunistring gettext ];
hardeningDisable = stdenv.lib.optional stdenv.isDarwin "format";
2016-04-12 20:29:40 +02:00
configureFlags = [
"--with-readline=${readline.dev}"
"--with-zlib=${zlib.dev}"
"--without-expat"
2016-04-12 20:29:40 +02:00
];
installFlags = [ "PREFIX=$(out)" ];
2016-10-23 18:02:42 +02:00
enableParallelBuilding = true;
2014-04-13 22:23:23 +02:00
meta = with stdenv.lib; {
description = "A file transfer program supporting a number of network protocols";
2017-11-11 23:37:41 +01:00
homepage = https://lftp.tech/;
2014-04-13 22:23:23 +02:00
license = licenses.gpl3;
2016-10-23 18:02:42 +02:00
platforms = platforms.unix;
2014-04-13 22:23:23 +02:00
maintainers = [ maintainers.bjornfor ];
};
}