about summary refs log tree commit diff
path: root/machines/srv1/modsecurity.nix
diff options
context:
space:
mode:
Diffstat (limited to 'machines/srv1/modsecurity.nix')
-rw-r--r--machines/srv1/modsecurity.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/machines/srv1/modsecurity.nix b/machines/srv1/modsecurity.nix
new file mode 100644
index 0000000..85dd4d1
--- /dev/null
+++ b/machines/srv1/modsecurity.nix
@@ -0,0 +1,19 @@
+{ stdenv, fetchFromGitHub, libmodsecurity }:
+let
+  pname = "ModSecurity-nginx";
+  version = "1.0.1";
+in
+stdenv.mkDerivation {
+  inherit pname version;
+
+  src = fetchFromGitHub {
+    owner = "SpiderLabs";
+    repo = "ModSecurity-nginx";
+    rev = "v${version}";
+    sha256 = "sha256:0cbb3g3g4v6q5zc6an212ia5kjjad62bidnkm8b70i4qv1615pzf";
+  };
+
+  inputs = [ libmodsecurity ];
+
+}
+