uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
34
pkgs/servers/http/apache-modules/mod_cspnonce/default.nix
Normal file
34
pkgs/servers/http/apache-modules/mod_cspnonce/default.nix
Normal file
|
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue