Merge pull request #185683 from ilkecan/phpPackages-set-meta-mainProgram

phpPackages: set meta.mainProgram
This commit is contained in:
Aaron Andersen 2022-11-07 08:25:02 -05:00 committed by GitHub
commit d3c9c4df6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,7 @@ mkDerivation rec {
description = "A deployment tool for PHP";
license = licenses.mit;
homepage = "https://deployer.org/";
mainProgram = "dep";
maintainers = with maintainers; teams.php.members;
};
}

View File

@ -58,6 +58,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