linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / tools / networking / ncftp / default.nix
bloba43d5f4a88c8caed745a94dbcb1ea69ee9ea0821
1 { lib, stdenv, fetchurl, ncurses, coreutils }:
3 stdenv.mkDerivation rec {
4   pname = "ncftp";
5   version = "3.2.6";
7   src = fetchurl {
8     url = "ftp://ftp.ncftp.com/ncftp/ncftp-${version}-src.tar.xz";
9     sha256 = "1389657cwgw5a3kljnqmhvfh4vr2gcr71dwz1mlhf22xq23hc82z";
10   };
12   buildInputs = [ ncurses ];
14   enableParallelBuilding = true;
16   preConfigure = ''
17     find -name Makefile.in | xargs sed -i '/^TMPDIR=/d'
19     find . -name '*.sh' -or -name '*.in' -or -name '*.c' -or -name configure | xargs sed -i \
20       -e 's@/bin/ls@${coreutils}/bin/ls@g' \
21       -e 's@/bin/rm@${coreutils}/bin/rm@g'
22   '';
24   postInstall = ''
25     rmdir $out/etc
26     mkdir -p $out/share/doc
27     cp -r doc $out/share/doc/ncftp
28   '';
30   configureFlags = [
31     "--enable-ssp"
32     "--mandir=$(out)/share/man/"
33   ];
35   meta = with lib; {
36     description = "Command line FTP (File Transfer Protocol) client";
37     homepage = "https://www.ncftp.com/ncftp/";
38     maintainers = with maintainers; [ bjornfor ];
39     platforms = platforms.unix;
40     license = licenses.clArtistic;
41   };