about summary refs log tree commit diff
path: root/pkgs/top-level/php-packages.nix
diff options
context:
space:
mode:
authorilkecan <ilkecan@protonmail.com>2022-08-08 16:38:05 +0000
committerilkecan <ilkecan@protonmail.com>2022-08-08 16:38:05 +0000
commit58919907a73f2bd0329f8943875d7bab9c5eca8e (patch)
tree11eee6b896af54f46f134a4964ae3c1de3b4200d /pkgs/top-level/php-packages.nix
parent4bdf4169ad2896236895ca607a843f30c9680345 (diff)
phpPackages: set meta.mainProgram
Diffstat (limited to 'pkgs/top-level/php-packages.nix')
-rw-r--r--pkgs/top-level/php-packages.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/top-level/php-packages.nix b/pkgs/top-level/php-packages.nix
index ce3af252abc74..ee330c15b565f 100644
--- a/pkgs/top-level/php-packages.nix
+++ b/pkgs/top-level/php-packages.nix
@@ -56,6 +56,7 @@ lib.makeScope pkgs.newScope (self: with self; {
   # with how buildPecl does it and make the file easier to overview.
   mkDerivation = { pname, ... }@args: pkgs.stdenv.mkDerivation (args // {
     pname = "php-${pname}";
+    meta.mainProgram = args.meta.mainProgram or pname;
   });
 
   # Function to build an extension which is shipped as part of the php