init
This commit is contained in:
commit
300f0c30ee
6 changed files with 295 additions and 0 deletions
22
packages/symfony-cli/package.nix
Normal file
22
packages/symfony-cli/package.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
lib,
|
||||
phps,
|
||||
symlinkJoin,
|
||||
symfony-cli,
|
||||
makeWrapper,
|
||||
}: let
|
||||
package = symfony-cli;
|
||||
in
|
||||
# Tell Symfony's CLI where it can access the different PHP versions
|
||||
symlinkJoin {
|
||||
inherit (package) pname version meta;
|
||||
|
||||
paths = [package];
|
||||
|
||||
buildInputs = [makeWrapper];
|
||||
|
||||
postBuild = ''
|
||||
wrapProgram $out/bin/${package.meta.mainProgram} \
|
||||
--suffix PATH : ${lib.makeBinPath (builtins.attrValues phps)}
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue