]>
Commit | Line | Data |
---|---|---|
1a64deeb | 1 | { stdenv, fetchurl, file, openssl, libsodium, ncurses, cyrus_sasl, openldap, pkg-config, libxcrypt }: |
fcbdf67a IB |
2 | |
3 | stdenv.mkDerivation rec { | |
4 | pname = "proftpd"; | |
1a64deeb | 5 | version = "1.3.8"; |
fcbdf67a IB |
6 | src = fetchurl { |
7 | url = "https://github.com/proftpd/proftpd/archive/refs/tags/v${version}.tar.gz"; | |
1a64deeb | 8 | sha256 = "sha256-9xOec3eiywWbi5sU12pt9fRA4xgcsVrokNQ7vK5XR0g="; |
fcbdf67a IB |
9 | }; |
10 | postPatch = '' | |
11 | sed -i -e "s@/usr/bin/file@${file}/bin/file@" configure | |
12 | ''; | |
13 | dontDisableStatic = 1; | |
1a64deeb | 14 | configureFlags = [ "--enable-openssl" "--with-modules=mod_ldap:mod_sftp:mod_tls:mod_site_misc" "--with-includes=${libsodium.dev}/include" "--with-libraries=${libsodium}/lib" ]; |
fcbdf67a IB |
15 | preInstall = '' |
16 | installFlagsArray=(INSTALL_USER=$(id -u) INSTALL_GROUP=$(id -g)) | |
17 | ''; | |
1a64deeb | 18 | buildInputs = [ openssl libsodium ncurses cyrus_sasl openldap pkg-config libxcrypt ]; |
fcbdf67a IB |
19 | postInstall = '' |
20 | rmdir $out/var $out/libexec $out/lib/proftpd $out/share/locale | |
21 | ''; | |
22 | } |