mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 03:12:51 +00:00
d908b6a1b7
Add `gettext` (which provides `-lintl`) and disable `format` hardening in order to fix build.
37 lines
1.0 KiB
Nix
37 lines
1.0 KiB
Nix
{ stdenv, fetchurl, gnutls, pkgconfig, readline, zlib, libidn2, gmp, libiconv, gettext }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "lftp-${version}";
|
|
version = "4.8.0";
|
|
|
|
src = fetchurl {
|
|
urls = [
|
|
"https://lftp.tech/ftp/${name}.tar.bz2"
|
|
"ftp://ftp.st.ryukoku.ac.jp/pub/network/ftp/lftp/${name}.tar.bz2"
|
|
"http://lftp.yar.ru/ftp/old/${name}.tar.bz2"
|
|
];
|
|
sha256 = "0z2432zxzg808swi72yak9kia976qrjj030grk0v4p54mcib3s34";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ gnutls readline zlib libidn2 gmp libiconv ]
|
|
++ stdenv.lib.optional stdenv.isDarwin 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 = http://lftp.tech/;
|
|
license = licenses.gpl3;
|
|
platforms = platforms.unix;
|
|
maintainers = [ maintainers.bjornfor ];
|
|
};
|
|
}
|