phpPackages: set meta.mainProgram

This commit is contained in:
ilkecan 2022-08-08 16:38:05 +00:00
parent 4bdf4169ad
commit 58919907a7
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

@ -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