diff options
author | Peter Hoeg <peter@hoeg.com> | 2018-03-27 15:10:05 +0800 |
---|---|---|
committer | Peter Hoeg <peter@hoeg.com> | 2018-03-27 15:10:17 +0800 |
commit | dab9d404ce5814a0d27e347872e0e44f9901b573 (patch) | |
tree | 36eb37d4d3ba3db79f6d81c40af5896632026efd /pkgs/tools | |
parent | 0709ebba722b8a2408365f1a731bef884a2b6e29 (diff) | |
download | nixlib-dab9d404ce5814a0d27e347872e0e44f9901b573.tar nixlib-dab9d404ce5814a0d27e347872e0e44f9901b573.tar.gz nixlib-dab9d404ce5814a0d27e347872e0e44f9901b573.tar.bz2 nixlib-dab9d404ce5814a0d27e347872e0e44f9901b573.tar.lz nixlib-dab9d404ce5814a0d27e347872e0e44f9901b573.tar.xz nixlib-dab9d404ce5814a0d27e347872e0e44f9901b573.tar.zst nixlib-dab9d404ce5814a0d27e347872e0e44f9901b573.zip |
ncftp: man and doc files were missing
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/networking/ncftp/default.nix | 33 |
1 files changed, 19 insertions, 14 deletions
diff --git a/pkgs/tools/networking/ncftp/default.nix b/pkgs/tools/networking/ncftp/default.nix index 4c632899ac2e..0a0eadbfcba4 100644 --- a/pkgs/tools/networking/ncftp/default.nix +++ b/pkgs/tools/networking/ncftp/default.nix @@ -1,8 +1,8 @@ { stdenv, fetchurl, ncurses, coreutils }: -let version = "3.2.6"; in -stdenv.mkDerivation { +stdenv.mkDerivation rec { name = "ncftp-${version}"; + version = "3.2.6"; src = fetchurl { url = "ftp://ftp.ncftp.com/ncftp/ncftp-${version}-src.tar.xz"; @@ -11,24 +11,29 @@ stdenv.mkDerivation { buildInputs = [ ncurses ]; + enableParallelBuilding = true; + 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 + find . -name '*.sh' -or -name '*.in' -or -name '*.c' -or -name configure | xargs sed -i \ + -e 's@/bin/ls@${coreutils}/bin/ls@g' \ + -e 's@/bin/rm@${coreutils}/bin/rm@g' + ''; + + postInstall = '' + rmdir $out/etc + mkdir -p $out/share/doc + cp -r doc $out/share/doc/ncftp ''; - configureFlags = [ "--mandir=$out/share/man/" ]; + configureFlags = [ + "--enable-ssp" + "--mandir=$(out)/share/man/" + ]; meta = with stdenv.lib; { description = "Command line FTP (File Transfer Protocol) client"; - homepage = http://www.ncftp.com/ncftp/; + homepage = https://www.ncftp.com/ncftp/; + maintainers = with maintainers; [ bjornfor ]; platforms = platforms.unix; - maintainers = [ maintainers.bjornfor ]; }; } |