2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, ncurses, coreutils }:
|
2009-09-17 09:31:34 +02:00
|
|
|
|
2018-03-27 09:10:05 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "ncftp";
|
2018-03-27 09:10:05 +02:00
|
|
|
version = "3.2.6";
|
2009-09-17 09:31:34 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-01-04 09:34:38 +01:00
|
|
|
url = "ftp://ftp.ncftp.com/ncftp/ncftp-${version}-src.tar.xz";
|
|
|
|
sha256 = "1389657cwgw5a3kljnqmhvfh4vr2gcr71dwz1mlhf22xq23hc82z";
|
2009-09-17 09:31:34 +02:00
|
|
|
};
|
|
|
|
|
2013-08-21 20:22:23 +02:00
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
2018-03-27 09:10:05 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2009-09-17 09:31:34 +02:00
|
|
|
preConfigure = ''
|
2020-09-09 20:57:32 +02:00
|
|
|
find -name Makefile.in | xargs sed -i '/^TMPDIR=/d'
|
|
|
|
|
2018-03-27 09:10:05 +02:00
|
|
|
find . -name '*.sh' -or -name '*.in' -or -name '*.c' -or -name configure | xargs sed -i \
|
|
|
|
-e 's@/bin/ls@${coreutils}/bin/ls@g' \
|
|
|
|
-e 's@/bin/rm@${coreutils}/bin/rm@g'
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
rmdir $out/etc
|
|
|
|
mkdir -p $out/share/doc
|
|
|
|
cp -r doc $out/share/doc/ncftp
|
2009-09-17 09:31:34 +02:00
|
|
|
'';
|
|
|
|
|
2018-03-27 09:10:05 +02:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-ssp"
|
|
|
|
"--mandir=$(out)/share/man/"
|
|
|
|
];
|
2015-11-22 21:16:35 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2013-08-21 20:22:23 +02:00
|
|
|
description = "Command line FTP (File Transfer Protocol) client";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://www.ncftp.com/ncftp/";
|
2018-03-27 09:10:05 +02:00
|
|
|
maintainers = with maintainers; [ bjornfor ];
|
2015-11-22 21:16:35 +01:00
|
|
|
platforms = platforms.unix;
|
2018-09-10 21:34:25 +02:00
|
|
|
license = licenses.clArtistic;
|
2009-09-17 09:31:34 +02:00
|
|
|
};
|
|
|
|
}
|