1 { lib, stdenv, fetchurl, libxcrypt }:
3 stdenv.mkDerivation rec {
8 url = "mirror://sourceforge/project/${pname}/${pname}/${pname}-${version}/${pname}-${version}.tar.gz";
9 sha256 = "sha256-lZGFsUV6LNjkBNUpV9UYedVt1yt1qTBJUorxGt4ApsI=";
12 # utmp.h is deprecated on aarch64-darwin
13 postPatch = lib.optionals (stdenv.isDarwin && stdenv.isAarch64) ''
14 for file in login.*; do
15 substituteInPlace $file --replace "#ifdef HAVE_UTMP_H" "#if 0"
19 buildInputs = [ libxcrypt ];
21 CFLAGS = "-std=gnu89";
24 sed -re 's/-[og] 0//g' -i Makefile*
28 mkdir -p $out/share/doc/${pname}
29 mv $out/etc/*.conf $out/share/doc/${pname}
33 enableParallelBuilding = true;
36 description = "Minimal ftp server";
37 mainProgram = "bftpd";
38 downloadPage = "http://bftpd.sf.net/download.html";
39 homepage = "http://bftpd.sf.net/";
40 license = licenses.gpl2Plus;
41 maintainers = with maintainers; [ raskin ];
42 platforms = platforms.all;