1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00
nixpkgs/pkgs/tools/networking/ncftp/default.nix
Bjørn Forsman d65cea26dc ncftp: 3.2.4 -> 3.2.5
Also, add missing ncurses buildInput and add/update meta attributes. The
homepage is back up!
2013-08-21 20:58:14 +02:00

33 lines
1.1 KiB
Nix

{stdenv, fetchurl, ncurses, coreutils}:
let version = "3.2.5"; in
stdenv.mkDerivation {
name = "ncftp-${version}";
src = fetchurl {
url = "ftp://ftp.ncftp.com/ncftp/ncftp-${version}-src.tar.bz2";
sha256 = "0hlx12i0lwi99qsrx7nccf4nvwjj2gych4yks5y179b1ax0y5sxl";
};
buildInputs = [ ncurses ];
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 = with stdenv.lib; {
description = "Command line FTP (File Transfer Protocol) client";
homepage = http://www.ncftp.com/ncftp/;
platforms = platforms.linux;
maintainers = [ maintainers.bjornfor ];
};
}