lol
1{ stdenv, fetchurl, ncurses, coreutils }:
2
3let version = "3.2.5"; in
4stdenv.mkDerivation {
5 name = "ncftp-${version}";
6
7 src = fetchurl {
8 url = "ftp://ftp.ncftp.com/ncftp/ncftp-${version}-src.tar.bz2";
9 sha256 = "0hlx12i0lwi99qsrx7nccf4nvwjj2gych4yks5y179b1ax0y5sxl";
10 };
11
12 buildInputs = [ ncurses ];
13
14 preConfigure = ''
15 find . -name "*.sh" -type f | xargs sed 's@/bin/ls@${coreutils}/bin/ls@g' -i
16 find . -name "*.in" -type f | xargs sed 's@/bin/ls@${coreutils}/bin/ls@g' -i
17 find . -name "*.c" -type f | xargs sed 's@/bin/ls@${coreutils}/bin/ls@g' -i
18 sed 's@/bin/ls@${coreutils}/bin/ls@g' -i configure
19
20 find . -name "*.sh" -type f | xargs sed 's@/bin/rm@${coreutils}/bin/rm@g' -i
21 find . -name "*.in" -type f | xargs sed 's@/bin/rm@${coreutils}/bin/rm@g' -i
22 find . -name "*.c" -type f | xargs sed 's@/bin/rm@${coreutils}/bin/rm@g' -i
23 sed 's@/bin/rm@${coreutils}/bin/rm@g' -i configure
24 '';
25
26 configureFlags = [ "--mandir=$out/share/man/" ];
27
28 meta = with stdenv.lib; {
29 description = "Command line FTP (File Transfer Protocol) client";
30 homepage = http://www.ncftp.com/ncftp/;
31 platforms = platforms.unix;
32 maintainers = [ maintainers.bjornfor ];
33 };
34}