3
0
Fork 0
forked from mirrors/nixpkgs

mod_evasive: Add Apache version check

This commit is contained in:
Eelco Dolstra 2014-11-07 11:42:43 +01:00
parent 690154993d
commit 2819063c37

View file

@ -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 {
name = "mod_evasive-1.10.1";