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

37 lines
1 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, gnutls, pkgconfig, readline, zlib, libidn2, gmp, libiconv, gettext }:
stdenv.mkDerivation rec {
name = "lftp-${version}";
2017-07-17 05:16:01 +02:00
version = "4.8.0";
src = fetchurl {
2014-11-16 02:30:03 +01:00
urls = [
"https://lftp.tech/ftp/${name}.tar.bz2"
"ftp://ftp.st.ryukoku.ac.jp/pub/network/ftp/lftp/${name}.tar.bz2"
2014-11-16 02:30:03 +01:00
"http://lftp.yar.ru/ftp/old/${name}.tar.bz2"
];
2017-07-17 05:16:01 +02:00
sha256 = "0z2432zxzg808swi72yak9kia976qrjj030grk0v4p54mcib3s34";
};
2016-04-12 20:29:40 +02:00
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ gnutls readline zlib libidn2 gmp libiconv ]
++ stdenv.lib.optional stdenv.isDarwin gettext;
hardeningDisable = stdenv.lib.optional stdenv.isDarwin "format";
2016-04-12 20:29:40 +02:00
configureFlags = [
"--with-readline=${readline.dev}"
2016-04-12 20:29:40 +02:00
];
installFlags = [ "PREFIX=$(out)" ];
2016-10-23 18:02:42 +02:00
2014-04-13 22:23:23 +02:00
meta = with stdenv.lib; {
description = "A file transfer program supporting a number of network protocols";
homepage = http://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 ];
};
}