2009-09-17 09:31:34 +02:00
|
|
|
{stdenv, fetchurl, ncurses, coreutils}:
|
|
|
|
|
2010-11-11 18:32:53 +01:00
|
|
|
let version = "3.2.4"; in
|
2009-09-17 09:31:34 +02:00
|
|
|
stdenv.mkDerivation {
|
2010-11-11 18:32:53 +01:00
|
|
|
name = "ncftp-${version}";
|
2009-09-17 09:31:34 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2010-11-11 18:32:53 +01:00
|
|
|
# `ncftp.com' got stolen, apparently, so resort to Debian.
|
|
|
|
url = "mirror://debian/pool/main/n/ncftp/ncftp_${version}.orig.tar.gz";
|
|
|
|
sha256 = "6f26e7891f3eab27eebd2bbbe2bc87d5ae872e610eaf0bc5652aec520adcf68a";
|
2009-09-17 09:31:34 +02: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
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "NcFTP Client (also known as just NcFTP) is a set of FREE application programs implementing the File Transfer Protocol (FTP).";
|
2010-11-11 18:32:53 +01:00
|
|
|
|
|
|
|
# Homeless!
|
|
|
|
# homepage = http://www.ncftp.com/ncftp/;
|
2009-09-17 09:31:34 +02:00
|
|
|
};
|
|
|
|
}
|