diff options
author | Robert Schütz <dev@schuetz-co.de> | 2021-05-12 14:00:05 +0200 |
---|---|---|
committer | Robert Schütz <dev@schuetz-co.de> | 2021-05-12 14:06:35 +0200 |
commit | 89263112386467419a4ddc7bd54b39318a21d788 (patch) | |
tree | ad7657815dccc41e8543ce252a7255cc1e0142e8 /pkgs | |
parent | 8a0c5da648702f4620e3a2926f48b38dd1d86562 (diff) |
vsftpd: fix build with gcc9
We still use that version on aarch64.
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/servers/ftp/vsftpd/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/servers/ftp/vsftpd/default.nix b/pkgs/servers/ftp/vsftpd/default.nix index 1a5bd4370d72b..b87d11809b11a 100644 --- a/pkgs/servers/ftp/vsftpd/default.nix +++ b/pkgs/servers/ftp/vsftpd/default.nix @@ -24,7 +24,11 @@ stdenv.mkDerivation rec { ''; NIX_LDFLAGS = "-lcrypt -lssl -lcrypto -lpam -lcap"; - NIX_CFLAGS_COMPILE = "-Wno-error=enum-conversion"; + + # On gcc9, this would produce + # error: '-Werror=enum-conversion': no option -Wenum-conversion + NIX_CFLAGS_COMPILE = lib.optionalString (lib.versionAtLeast stdenv.cc.version "10") + "-Wno-error=enum-conversion"; enableParallelBuilding = true; |