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

37 lines
845 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl }:
2018-04-23 05:00:33 +02:00
let
2016-11-28 13:54:57 +01:00
pname = "bftpd";
2018-04-23 05:00:33 +02:00
in stdenv.mkDerivation rec {
name = "${pname}-${version}";
2020-08-13 03:21:51 +02:00
version = "5.6";
2018-04-23 05:00:33 +02:00
2016-11-28 13:54:57 +01:00
src = fetchurl {
url = "mirror://sourceforge/project/${pname}/${pname}/${name}/${name}.tar.gz";
2020-08-13 03:21:51 +02:00
sha256 = "18ksld775balh0yx2icj7fya9fvjkfgvwznvccdlmhi3zidg550h";
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; {
2016-11-28 13:54:57 +01:00
inherit version;
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
};
}