tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
mod_evasive: Add Apache version check
Eelco Dolstra
11 years ago
2819063c
69015499
+7
-1
1 changed file
expand all
collapse all
unified
split
pkgs
servers
http
apache-modules
mod_evasive
default.nix
+7
-1
pkgs/servers/http/apache-modules/mod_evasive/default.nix
···
1
1
-
{ stdenv, fetchurl, apacheHttpd }:
1
1
+
{ lib, stdenv, fetchurl, apacheHttpd }:
2
2
+
3
3
+
if lib.versionAtLeast (lib.getVersion apacheHttpd) "2.4" then
4
4
+
5
5
+
throw "mod_evasive is not supported on Apache httpd 2.4"
6
6
+
7
7
+
else
2
8
3
9
stdenv.mkDerivation {
4
10
name = "mod_evasive-1.10.1";