1 { stdenv, lib, fetchFromGitHub, apacheHttpd }:
3 stdenv.mkDerivation rec {
4 pname = "mod_cspnonce";
7 src = fetchFromGitHub {
11 hash = "sha256-uUWRKUjS2LvHgT5xrK+LZLQRHc6wMaxGca2OsVxVlRs=";
14 buildInputs = [ apacheHttpd ];
17 apxs -ca mod_cspnonce.c
23 cp .libs/mod_cspnonce.so $out/modules
28 description = "An Apache2 module that makes it dead simple to add nonce values to the CSP";
29 homepage = "https://github.com/wyattoday/mod_cspnonce";
30 license = licenses.asl20;
31 platforms = platforms.unix;
32 maintainers = with maintainers; [ dasj19 ];