1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-02 10:31:36 +00:00
nixpkgs/pkgs/tools/networking/lftp/default.nix
Orivej Desh d7f4b13ccf lftp: do not look for expat and zlib in /usr/include
This behaviour affects builds without sandboxing.
2019-02-20 20:11:15 +00:00

40 lines
1.1 KiB
Nix

{ stdenv, fetchurl, gnutls, pkgconfig, readline, zlib, libidn2, gmp, libiconv, libunistring, gettext }:
stdenv.mkDerivation rec {
name = "lftp-${version}";
version = "4.8.4";
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 = "0qks22357xv9y6ripmf5j2n5svh8j5z0yniphfk89sjwkqg2gg2f";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ gnutls readline zlib libidn2 gmp libiconv libunistring gettext ];
hardeningDisable = stdenv.lib.optional stdenv.isDarwin "format";
configureFlags = [
"--with-readline=${readline.dev}"
"--with-zlib=${zlib.dev}"
"--without-expat"
];
installFlags = [ "PREFIX=$(out)" ];
enableParallelBuilding = true;
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 ];
};
}