1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-01 01:51:24 +00:00
nixpkgs/pkgs/tools/networking/lftp/default.nix

37 lines
1 KiB
Nix
Raw Normal View History

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