diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-06-01 15:47:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-01 15:47:53 +0200 |
commit | 3850fdb3300ecd7eae2178ef3af212d1c0786e51 (patch) | |
tree | cf8b8b4ea97720fe84a29815d59e742800190f62 /pkgs/development/php-packages | |
parent | 5224314a6cf20f387cc418ed44a2f220026d4910 (diff) | |
parent | 52248df095bd7731c3cc8c13c44740e01d4a5228 (diff) | |
download | nixpkgs-3850fdb3300ecd7eae2178ef3af212d1c0786e51.tar nixpkgs-3850fdb3300ecd7eae2178ef3af212d1c0786e51.tar.gz nixpkgs-3850fdb3300ecd7eae2178ef3af212d1c0786e51.tar.bz2 nixpkgs-3850fdb3300ecd7eae2178ef3af212d1c0786e51.tar.lz nixpkgs-3850fdb3300ecd7eae2178ef3af212d1c0786e51.tar.xz nixpkgs-3850fdb3300ecd7eae2178ef3af212d1c0786e51.tar.zst nixpkgs-3850fdb3300ecd7eae2178ef3af212d1c0786e51.zip |
Merge pull request #120699 from NorfairKing/package-php-snuffleupagus
php.extensions.snuffleupagus: init at 0.7.0
Diffstat (limited to 'pkgs/development/php-packages')
-rw-r--r-- | pkgs/development/php-packages/snuffleupagus/default.nix | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/pkgs/development/php-packages/snuffleupagus/default.nix b/pkgs/development/php-packages/snuffleupagus/default.nix new file mode 100644 index 00000000000..222a243606f --- /dev/null +++ b/pkgs/development/php-packages/snuffleupagus/default.nix @@ -0,0 +1,53 @@ +{ buildPecl +, lib +, php +, fetchFromGitHub +, pcre' +, fetchpatch +}: + +buildPecl rec { + pname = "snuffleupagus"; + version = "0.7.0"; + src = fetchFromGitHub { + owner = "jvoisin"; + repo = pname; + rev = "v${version}"; + sha256 = "1la6wa9xznc110b7isiy502x71mkvhisq6m8llhczpq4rs4nbcw2"; + }; + + buildInputs = [ + pcre' + ]; + + internalDeps = with php.extensions; [ + session + ] ++ lib.optionals (lib.versionOlder php.version "7.4") [ + hash + ]; + + patches = [ + (fetchpatch { + url = "https://github.com/jvoisin/snuffleupagus/commit/3c528d9d03cec872382a6f400b5701a8fbfd59b4.patch"; + sha256 = "0lnj4xcl867f477mha697d1py1nwxhl18dvvg40qgflpdbywlzns"; + stripLen = 1; + }) + ]; + + sourceRoot = "source/src"; + + configureFlags = [ + "--enable-snuffleupagus" + ]; + + postPhpize = '' + ./configure --enable-snuffleupagus + ''; + + meta = with lib; { + description = "Security module for php7 and php8 - Killing bugclasses and virtual-patching the rest!"; + license = licenses.lgpl3Only; + homepage = "https://github.com/jvoisin/snuffleupagus"; + maintainers = teams.php.members ++ [ maintainers.zupo ]; + }; +} |