mod_evasive: Add Apache version check
This commit is contained in:
parent
690154993d
commit
2819063c37
@ -1,4 +1,10 @@
|
|||||||
{ stdenv, fetchurl, apacheHttpd }:
|
{ lib, stdenv, fetchurl, apacheHttpd }:
|
||||||
|
|
||||||
|
if lib.versionAtLeast (lib.getVersion apacheHttpd) "2.4" then
|
||||||
|
|
||||||
|
throw "mod_evasive is not supported on Apache httpd 2.4"
|
||||||
|
|
||||||
|
else
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "mod_evasive-1.10.1";
|
name = "mod_evasive-1.10.1";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user