about summary refs log tree commit diff
path: root/pkgs/servers/http/unit
diff options
context:
space:
mode:
authorIzorkin <izorkin@elven.pw>2022-06-03 09:27:57 +0300
committerIzorkin <izorkin@elven.pw>2022-07-15 22:46:26 +0300
commit2d7c97f43923cfe07ba65043a85fd0c0cccec980 (patch)
treec00fabf1cf9046c82786d52a643f9f26fc4379fd /pkgs/servers/http/unit
parent66b6475aa8690306d24b8853eac9682a734cf7dc (diff)
downloadnixlib-2d7c97f43923cfe07ba65043a85fd0c0cccec980.tar
nixlib-2d7c97f43923cfe07ba65043a85fd0c0cccec980.tar.gz
nixlib-2d7c97f43923cfe07ba65043a85fd0c0cccec980.tar.bz2
nixlib-2d7c97f43923cfe07ba65043a85fd0c0cccec980.tar.lz
nixlib-2d7c97f43923cfe07ba65043a85fd0c0cccec980.tar.xz
nixlib-2d7c97f43923cfe07ba65043a85fd0c0cccec980.tar.zst
nixlib-2d7c97f43923cfe07ba65043a85fd0c0cccec980.zip
unit: add php 8.1
Diffstat (limited to 'pkgs/servers/http/unit')
-rw-r--r--pkgs/servers/http/unit/default.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/servers/http/unit/default.nix b/pkgs/servers/http/unit/default.nix
index 139cdede3861..fd66f3a83c7d 100644
--- a/pkgs/servers/http/unit/default.nix
+++ b/pkgs/servers/http/unit/default.nix
@@ -1,7 +1,8 @@
 { lib, stdenv, fetchFromGitHub, nixosTests, which
 , pcre2
 , withPython3 ? true, python3, ncurses
-, withPHP80 ? true, php80
+, withPHP80 ? false, php80
+, withPHP81 ? true, php81
 , withPerl532 ? false, perl532
 , withPerl534 ? true, perl534
 , withPerldevel ? false, perldevel
@@ -24,6 +25,7 @@ let
   };
 
   php80-unit = php80.override phpConfig;
+  php81-unit = php81.override phpConfig;
 
 in stdenv.mkDerivation rec {
   version = "1.27.0";
@@ -41,6 +43,7 @@ in stdenv.mkDerivation rec {
   buildInputs = [ pcre2.dev ]
     ++ optionals withPython3 [ python3 ncurses ]
     ++ optional withPHP80 php80-unit
+    ++ optional withPHP81 php81-unit
     ++ optional withPerl532 perl532
     ++ optional withPerl534 perl534
     ++ optional withPerldevel perldevel
@@ -58,10 +61,12 @@ in stdenv.mkDerivation rec {
 
   # Optionally add the PHP derivations used so they can be addressed in the configs
   usedPhp80 = optionals withPHP80 php80-unit;
+  usedPhp81 = optionals withPHP81 php81-unit;
 
   postConfigure = ''
     ${optionalString withPython3    "./configure python --module=python3  --config=python3-config  --lib-path=${python3}/lib"}
     ${optionalString withPHP80      "./configure php    --module=php80    --config=${php80-unit.unwrapped.dev}/bin/php-config --lib-path=${php80-unit}/lib"}
+    ${optionalString withPHP81      "./configure php    --module=php81    --config=${php81-unit.unwrapped.dev}/bin/php-config --lib-path=${php81-unit}/lib"}
     ${optionalString withPerl532    "./configure perl   --module=perl532  --perl=${perl532}/bin/perl"}
     ${optionalString withPerl534    "./configure perl   --module=perl534  --perl=${perl534}/bin/perl"}
     ${optionalString withPerldevel  "./configure perl   --module=perldev  --perl=${perldevel}/bin/perl"}