2014-01-02 16:53:57 +00:00
|
|
|
{ stdenv, fetchurl, ncurses, coreutils }:
|
2009-09-17 08:31:34 +01:00
|
|
|
|
2018-01-04 08:34:38 +00:00
|
|
|
let version = "3.2.6"; in
|
2009-09-17 08:31:34 +01:00
|
|
|
stdenv.mkDerivation {
|
2010-11-11 17:32:53 +00:00
|
|
|
name = "ncftp-${version}";
|
2009-09-17 08:31:34 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-01-04 08:34:38 +00:00
|
|
|
url = "ftp://ftp.ncftp.com/ncftp/ncftp-${version}-src.tar.xz";
|
|
|
|
sha256 = "1389657cwgw5a3kljnqmhvfh4vr2gcr71dwz1mlhf22xq23hc82z";
|
2009-09-17 08:31:34 +01:00
|
|
|
};
|
|
|
|
|
2013-08-21 19:22:23 +01:00
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
2009-09-17 08:31:34 +01:00
|
|
|
preConfigure = ''
|
|
|
|
find . -name "*.sh" -type f | xargs sed 's@/bin/ls@${coreutils}/bin/ls@g' -i
|
|
|
|
find . -name "*.in" -type f | xargs sed 's@/bin/ls@${coreutils}/bin/ls@g' -i
|
|
|
|
find . -name "*.c" -type f | xargs sed 's@/bin/ls@${coreutils}/bin/ls@g' -i
|
|
|
|
sed 's@/bin/ls@${coreutils}/bin/ls@g' -i configure
|
|
|
|
|
|
|
|
find . -name "*.sh" -type f | xargs sed 's@/bin/rm@${coreutils}/bin/rm@g' -i
|
|
|
|
find . -name "*.in" -type f | xargs sed 's@/bin/rm@${coreutils}/bin/rm@g' -i
|
|
|
|
find . -name "*.c" -type f | xargs sed 's@/bin/rm@${coreutils}/bin/rm@g' -i
|
|
|
|
sed 's@/bin/rm@${coreutils}/bin/rm@g' -i configure
|
|
|
|
'';
|
|
|
|
|
2015-11-22 20:16:35 +00:00
|
|
|
configureFlags = [ "--mandir=$out/share/man/" ];
|
|
|
|
|
2013-08-21 19:22:23 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Command line FTP (File Transfer Protocol) client";
|
|
|
|
homepage = http://www.ncftp.com/ncftp/;
|
2015-11-22 20:16:35 +00:00
|
|
|
platforms = platforms.unix;
|
2013-08-21 19:22:23 +01:00
|
|
|
maintainers = [ maintainers.bjornfor ];
|
2009-09-17 08:31:34 +01:00
|
|
|
};
|
|
|
|
}
|