nixpkgs-suyu/pkgs/servers/ftp/bftpd/default.nix

33 lines
807 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl }:
2018-04-23 05:00:33 +02:00
stdenv.mkDerivation rec {
2016-11-28 13:54:57 +01:00
pname = "bftpd";
2021-08-20 18:23:58 +02:00
version = "6.0";
2018-04-23 05:00:33 +02:00
2016-11-28 13:54:57 +01:00
src = fetchurl {
url = "mirror://sourceforge/project/${pname}/${pname}/${pname}-${version}/${pname}-${version}.tar.gz";
2021-08-20 18:23:58 +02:00
sha256 = "sha256-t+YCys67drYKcD3GXxSVzZo4HTRZArIpA6EofeyPAlw=";
2016-11-28 13:54:57 +01:00
};
2018-04-23 05:00:33 +02:00
2016-11-28 13:54:57 +01:00
preConfigure = ''
sed -re 's/-[og] 0//g' -i Makefile*
'';
2018-04-23 05:00:33 +02:00
postInstall = ''
mkdir -p $out/share/doc/${pname}
mv $out/etc/*.conf $out/share/doc/${pname}
rm -rf $out/{etc,var}
'';
enableParallelBuilding = true;
meta = with lib; {
2018-04-23 05:00:33 +02:00
description = "A minimal ftp server";
2016-11-28 13:54:57 +01:00
downloadPage = "http://bftpd.sf.net/download.html";
homepage = "http://bftpd.sf.net/";
2018-04-23 05:00:33 +02:00
license = licenses.gpl2Plus;
maintainers = with maintainers; [ raskin ];
2020-08-13 06:20:00 +02:00
platforms = platforms.all;
2016-11-28 13:54:57 +01:00
};
}