1 { lib, stdenv, fetchurl, ncurses, coreutils }:
3 stdenv.mkDerivation rec {
8 url = "ftp://ftp.ncftp.com/ncftp/ncftp-${version}-src.tar.xz";
9 sha256 = "1389657cwgw5a3kljnqmhvfh4vr2gcr71dwz1mlhf22xq23hc82z";
12 buildInputs = [ ncurses ];
14 enableParallelBuilding = true;
17 find -name Makefile.in | xargs sed -i '/^TMPDIR=/d'
19 find . -name '*.sh' -or -name '*.in' -or -name '*.c' -or -name configure | xargs sed -i \
20 -e 's@/bin/ls@${coreutils}/bin/ls@g' \
21 -e 's@/bin/rm@${coreutils}/bin/rm@g'
26 mkdir -p $out/share/doc
27 cp -r doc $out/share/doc/ncftp
32 "--mandir=$(out)/share/man/"
36 description = "Command line FTP (File Transfer Protocol) client";
37 homepage = "https://www.ncftp.com/ncftp/";
38 maintainers = with maintainers; [ bjornfor ];
39 platforms = platforms.unix;
40 license = licenses.clArtistic;