Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
40 lines
818 B
Nix
40 lines
818 B
Nix
{
|
|
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 = with lib; {
|
|
description = "Apache2 module that makes it dead simple to add nonce values to the CSP";
|
|
homepage = "https://github.com/wyattoday/mod_cspnonce";
|
|
license = licenses.asl20;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ dasj19 ];
|
|
};
|
|
}
|