From a572639f05ebb8d88cb8fe283785edd25aa1c49d Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Sun, 21 Mar 2021 11:04:53 +0100 Subject: Add modsecurity --- machines/srv1/modsecurity.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 machines/srv1/modsecurity.nix (limited to 'machines/srv1/modsecurity.nix') 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 ]; + +} + -- cgit 1.4.1