3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/ncftp/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
1.3 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, ncurses, coreutils }:
2018-03-27 08:10:05 +01:00
stdenv.mkDerivation rec {
pname = "ncftp";
2018-03-27 08:10:05 +01:00
version = "3.2.6";
src = fetchurl {
2018-01-04 08:34:38 +00:00
url = "ftp://ftp.ncftp.com/ncftp/ncftp-${version}-src.tar.xz";
sha256 = "1389657cwgw5a3kljnqmhvfh4vr2gcr71dwz1mlhf22xq23hc82z";
};
buildInputs = [ ncurses ];
2018-03-27 08:10:05 +01:00
enableParallelBuilding = true;
# Workaround build failure on -fno-common toolchains like upstream
# gcc-10. Otherwise build fails as:
# ld: bookmark.o: (.bss+0x20): multiple definition of `gBm';
# gpshare.o:(.bss+0x0): first defined here
NIX_CFLAGS_COMPILE = "-fcommon";
preConfigure = ''
2020-09-09 19:57:32 +01:00
find -name Makefile.in | xargs sed -i '/^TMPDIR=/d'
2018-03-27 08:10:05 +01:00
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
'';
2018-03-27 08:10:05 +01:00
configureFlags = [
"--enable-ssp"
"--mandir=$(out)/share/man/"
];
meta = with lib; {
description = "Command line FTP (File Transfer Protocol) client";
homepage = "https://www.ncftp.com/ncftp/";
2018-03-27 08:10:05 +01:00
maintainers = with maintainers; [ bjornfor ];
platforms = platforms.unix;
2018-09-10 20:34:25 +01:00
license = licenses.clArtistic;
};
}