about summary refs log tree commit diff
path: root/pkgs/servers/http/unit
diff options
context:
space:
mode:
authorElis Hirwing <elis@hirwing.se>2020-03-22 19:44:55 +0100
committertalyz <kim.lindberger@gmail.com>2020-03-31 22:06:56 +0200
commit1983417a2f80bf14ea0089817cb20f8025e232b5 (patch)
tree7898ac8c15dee1b48edbc616ae08c94cad78a2c4 /pkgs/servers/http/unit
parent96a5e0c928e8ab3be35f28b0c9df8d73fbda2729 (diff)
downloadnixlib-1983417a2f80bf14ea0089817cb20f8025e232b5.tar
nixlib-1983417a2f80bf14ea0089817cb20f8025e232b5.tar.gz
nixlib-1983417a2f80bf14ea0089817cb20f8025e232b5.tar.bz2
nixlib-1983417a2f80bf14ea0089817cb20f8025e232b5.tar.lz
nixlib-1983417a2f80bf14ea0089817cb20f8025e232b5.tar.xz
nixlib-1983417a2f80bf14ea0089817cb20f8025e232b5.tar.zst
nixlib-1983417a2f80bf14ea0089817cb20f8025e232b5.zip
unit: Make unit use phpbase packages
Diffstat (limited to 'pkgs/servers/http/unit')
-rw-r--r--pkgs/servers/http/unit/default.nix18
1 files changed, 15 insertions, 3 deletions
diff --git a/pkgs/servers/http/unit/default.nix b/pkgs/servers/http/unit/default.nix
index c56e994ed54e..afe4a4ed0a11 100644
--- a/pkgs/servers/http/unit/default.nix
+++ b/pkgs/servers/http/unit/default.nix
@@ -1,8 +1,8 @@
 { stdenv, fetchFromGitHub, which
 , withPython2 ? false, python2
 , withPython3 ? true, python3, ncurses
-, withPHP72 ? false, php72
-, withPHP73 ? true, php73
+, withPHP72 ? false, php72base
+, withPHP73 ? true, php73base
 , withPerl528 ? false, perl528
 , withPerl530 ? true, perl530
 , withPerldevel ? false, perldevel
@@ -16,7 +16,19 @@
 
 with stdenv.lib;
 
-stdenv.mkDerivation rec {
+let
+  phpConfig = {
+    config.php.embed = true;
+    config.php.apxs2 = false;
+    config.php.systemd = false;
+    config.php.phpdbg = false;
+    config.php.cgi = false;
+    config.php.fpm = false;
+  };
+
+  php72-unit = php72base.override phpConfig;
+  php73-unit = php73base.override phpConfig;
+in stdenv.mkDerivation rec {
   version = "1.16.0";
   pname = "unit";