2014-01-02 20:53:57 +04:00
|
|
|
{ stdenv, fetchurl, ncurses, coreutils }:
|
2009-09-17 11:31:34 +04:00
|
|
|
|
2013-08-21 22:22:23 +04:00
|
|
|
let version = "3.2.5"; in
|
2009-09-17 11:31:34 +04:00
|
|
|
stdenv.mkDerivation {
|
2010-11-11 20:32:53 +03:00
|
|
|
name = "ncftp-${version}";
|
2009-09-17 11:31:34 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-08-21 22:22:23 +04:00
|
|
|
url = "ftp://ftp.ncftp.com/ncftp/ncftp-${version}-src.tar.bz2";
|
|
|
|
sha256 = "0hlx12i0lwi99qsrx7nccf4nvwjj2gych4yks5y179b1ax0y5sxl";
|
2009-09-17 11:31:34 +04:00
|
|
|
};
|
|
|
|
|
2013-08-21 22:22:23 +04:00
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
2009-09-17 11:31:34 +04: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
|
|
|
|
'';
|
|
|
|
|
2013-08-21 22:22:23 +04:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Command line FTP (File Transfer Protocol) client";
|
|
|
|
homepage = http://www.ncftp.com/ncftp/;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.bjornfor ];
|
2009-09-17 11:31:34 +04:00
|
|
|
};
|
|
|
|
}
|