nixpkgs/pkgs/tools/networking/lftp/default.nix
Silvan Mosberger 57bccb3cb8 treewide: http -> https sources (#42676)
* treewide: http -> https sources

This updates the source urls of all top-level packages from http to
https where possible.

* buildtorrent: fix url and tab -> spaces
2018-06-28 20:43:35 +02:00

36 lines
1018 B
Nix

{ stdenv, fetchurl, gnutls, pkgconfig, readline, zlib, libidn2, gmp, libiconv, libunistring, gettext }:
stdenv.mkDerivation rec {
name = "lftp-${version}";
version = "4.8.3";
src = fetchurl {
urls = [
"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"
];
sha256 = "12y77jlfs4x4zvcah92mw2h2sb4j0bvbaxkh3wwsm8gs392ywyny";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ gnutls readline zlib libidn2 gmp libiconv libunistring gettext ];
hardeningDisable = stdenv.lib.optional stdenv.isDarwin "format";
configureFlags = [
"--with-readline=${readline.dev}"
];
installFlags = [ "PREFIX=$(out)" ];
meta = with stdenv.lib; {
description = "A file transfer program supporting a number of network protocols";
homepage = https://lftp.tech/;
license = licenses.gpl3;
platforms = platforms.unix;
maintainers = [ maintainers.bjornfor ];
};
}