blob: 7845140a4a88670ff332f6feb195f395e55a3129 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
{
stdenv,
lib,
fetchFromGitHub,
apacheHttpd,
}:
stdenv.mkDerivation rec {
pname = "mod_cspnonce";
version = "1.4";
src = fetchFromGitHub {
owner = "wyattoday";
repo = "mod_cspnonce";
rev = version;
hash = "sha256-uUWRKUjS2LvHgT5xrK+LZLQRHc6wMaxGca2OsVxVlRs=";
};
buildInputs = [ apacheHttpd ];
buildPhase = ''
apxs -ca mod_cspnonce.c
'';
installPhase = ''
runHook preInstall
mkdir -p $out/modules
cp .libs/mod_cspnonce.so $out/modules
runHook postInstall
'';
meta = {
description = "Apache2 module that makes it dead simple to add nonce values to the CSP";
homepage = "https://github.com/wyattoday/mod_cspnonce";
license = lib.licenses.asl20;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ dasj19 ];
};
}
|