1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/servers/ftp/bftpd/default.nix

37 lines
844 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl }:
2018-04-23 04:00:33 +01:00
let
2016-11-28 12:54:57 +00:00
pname = "bftpd";
2018-04-23 04:00:33 +01:00
in stdenv.mkDerivation rec {
name = "${pname}-${version}";
2021-05-13 15:09:40 +01:00
version = "5.7";
2018-04-23 04:00:33 +01:00
2016-11-28 12:54:57 +00:00
src = fetchurl {
url = "mirror://sourceforge/project/${pname}/${pname}/${name}/${name}.tar.gz";
2021-05-13 15:09:40 +01:00
sha256 = "sha256-pUPOYqgJKntQZRRodcyYeFNLCdxKhT8sK1bi3jl6b0s=";
2016-11-28 12:54:57 +00:00
};
2018-04-23 04:00:33 +01:00
2016-11-28 12:54:57 +00:00
preConfigure = ''
sed -re 's/-[og] 0//g' -i Makefile*
'';
2018-04-23 04:00:33 +01: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 12:54:57 +00:00
inherit version;
2018-04-23 04:00:33 +01:00
description = "A minimal ftp server";
2016-11-28 12:54:57 +00:00
downloadPage = "http://bftpd.sf.net/download.html";
homepage = "http://bftpd.sf.net/";
2018-04-23 04:00:33 +01:00
license = licenses.gpl2Plus;
maintainers = with maintainers; [ raskin ];
2020-08-13 05:20:00 +01:00
platforms = platforms.all;
2016-11-28 12:54:57 +00:00
};
}