diff options
author | Daniel Șerbănescu <daniel@serbanescu.dk> | 2021-12-21 18:14:33 +0100 |
---|---|---|
committer | Daniel Șerbănescu <daniel@serbanescu.dk> | 2021-12-21 18:14:33 +0100 |
commit | 25edd522e69fbd1e8c43397c2dbe214b2e238eb9 (patch) | |
tree | 2a9c018c4438457c1e62c265dfdbbb662f383f5b /pkgs/servers/http | |
parent | 8401f08ed31932f75855843907f9e6829327771d (diff) | |
download | nixpkgs-25edd522e69fbd1e8c43397c2dbe214b2e238eb9.tar nixpkgs-25edd522e69fbd1e8c43397c2dbe214b2e238eb9.tar.gz nixpkgs-25edd522e69fbd1e8c43397c2dbe214b2e238eb9.tar.bz2 nixpkgs-25edd522e69fbd1e8c43397c2dbe214b2e238eb9.tar.lz nixpkgs-25edd522e69fbd1e8c43397c2dbe214b2e238eb9.tar.xz nixpkgs-25edd522e69fbd1e8c43397c2dbe214b2e238eb9.tar.zst nixpkgs-25edd522e69fbd1e8c43397c2dbe214b2e238eb9.zip |
mod_cspnonce: init at 1.3
Diffstat (limited to 'pkgs/servers/http')
-rw-r--r-- | pkgs/servers/http/apache-modules/mod_cspnonce/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/servers/http/apache-modules/mod_cspnonce/default.nix b/pkgs/servers/http/apache-modules/mod_cspnonce/default.nix new file mode 100644 index 00000000000..5fb922c2df0 --- /dev/null +++ b/pkgs/servers/http/apache-modules/mod_cspnonce/default.nix @@ -0,0 +1,34 @@ +{ stdenv, lib, fetchFromGitHub, apacheHttpd }: + +stdenv.mkDerivation rec { + pname = "mod_cspnonce"; + version = "1.3"; + + src = fetchFromGitHub { + owner = "wyattoday"; + repo = "mod_cspnonce"; + rev = version; + sha256 = "0kqvxf1dn8r0ywrfiwsxryjrxii2sq11wisbjnm7770sjwckwqh5"; + }; + + 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 = "An 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 ]; + }; +} |