lol

mod_evasive: Add Apache version check

+7 -1
+7 -1
pkgs/servers/http/apache-modules/mod_evasive/default.nix
··· 1 - { stdenv, fetchurl, apacheHttpd }: 1 + { lib, stdenv, fetchurl, apacheHttpd }: 2 + 3 + if lib.versionAtLeast (lib.getVersion apacheHttpd) "2.4" then 4 + 5 + throw "mod_evasive is not supported on Apache httpd 2.4" 6 + 7 + else 2 8 3 9 stdenv.mkDerivation { 4 10 name = "mod_evasive-1.10.1";