diff options
Diffstat (limited to 'nixops/modules/ftp')
-rw-r--r-- | nixops/modules/ftp/default.nix | 4 | ||||
-rw-r--r-- | nixops/modules/ftp/pure-ftpd.nix | 29 |
2 files changed, 0 insertions, 33 deletions
diff --git a/nixops/modules/ftp/default.nix b/nixops/modules/ftp/default.nix index ff067f8..541e119 100644 --- a/nixops/modules/ftp/default.nix +++ b/nixops/modules/ftp/default.nix | |||
@@ -19,10 +19,6 @@ | |||
19 | extraDomains = { "ftp.immae.eu" = null; }; | 19 | extraDomains = { "ftp.immae.eu" = null; }; |
20 | }; | 20 | }; |
21 | 21 | ||
22 | nixpkgs.overlays = [ (self: super: { | ||
23 | pure-ftpd = self.callPackage ./pure-ftpd.nix {}; | ||
24 | }) ]; | ||
25 | |||
26 | networking = { | 22 | networking = { |
27 | firewall = { | 23 | firewall = { |
28 | allowedTCPPorts = [ 21 ]; | 24 | allowedTCPPorts = [ 21 ]; |
diff --git a/nixops/modules/ftp/pure-ftpd.nix b/nixops/modules/ftp/pure-ftpd.nix deleted file mode 100644 index 37ce695..0000000 --- a/nixops/modules/ftp/pure-ftpd.nix +++ /dev/null | |||
@@ -1,29 +0,0 @@ | |||
1 | { stdenv, fetchurl, openssl, postgresql, openldap }: | ||
2 | |||
3 | stdenv.mkDerivation rec { | ||
4 | name = "pure-ftpd-1.0.47"; | ||
5 | |||
6 | src = fetchurl { | ||
7 | url = "https://download.pureftpd.org/pub/pure-ftpd/releases/${name}.tar.gz"; | ||
8 | sha256 = "1b97ixva8m10vln8xrfwwwzi344bkgxqji26d0nrm1yzylbc6h27"; | ||
9 | }; | ||
10 | |||
11 | preConfigure = '' | ||
12 | sed -i -e "s#FTPuid#immaeFtpUid#" src/log_ldap.h | ||
13 | sed -i -e "s#FTPgid#immaeFtpGid#" src/log_ldap.h | ||
14 | ''; | ||
15 | postConfigure = '' | ||
16 | sed -i 's/define MAX_DATA_SIZE (40/define MAX_DATA_SIZE (70/' src/ftpd.h | ||
17 | ''; | ||
18 | buildInputs = [ openssl postgresql openldap ]; | ||
19 | |||
20 | configureFlags = [ "--with-everything" "--with-tls" "--with-pgsql" "--with-ldap" ]; | ||
21 | |||
22 | meta = with stdenv.lib; { | ||
23 | description = "A free, secure, production-quality and standard-conformant FTP server"; | ||
24 | homepage = https://www.pureftpd.org; | ||
25 | license = licenses.isc; # with some parts covered by BSD3(?) | ||
26 | maintainers = [ maintainers.lethalman ]; | ||
27 | platforms = platforms.linux; | ||
28 | }; | ||
29 | } | ||