!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

78 Members
A room for PHP developers running on Nix21 Servers

Load older messages


SenderMessageTime
21 Apr 2023
@jtojnar:matrix.orgJan Tojnar yes, but then if people pass configurePhase to buildPhpProject, they will lose the setupHook 07:56:31
@jtojnar:matrix.orgJan Tojnar * yes, but then if people pass configurePhase to buildPhpProject, they will lose the setupHook functionality 07:56:46
@jtojnar:matrix.orgJan Tojnarunless they call it explicitly07:57:02
@jtojnar:matrix.orgJan Tojnarwhich maybe would not be a problem if documented. IDK, we are breaking a new ground so the usage patterns are not developed yet.07:57:53
@jtojnar:matrix.orgJan Tojnar * which maybe would not be a problem if documented. IDK, we are breaking a new ground so the usage patterns are not well developed yet.07:58:11
@drupol:matrix.orgPolJob done. Fixed.07:59:35
@jtojnar:matrix.orgJan Tojnarand also strictDeps``08:05:24
@jtojnar:matrix.orgJan Tojnar * and also strictDeps 08:05:30
@jtojnar:matrix.orgJan Tojnar it really shows that mkDerivation was not designed with this in mind 08:06:28
@drupol:matrix.orgPolSo, something like that?08:07:16
@drupol:matrix.orgPol
    installPhase = (previousAttrs.installPhase or ''
      runHook preInstall
      runHook postInstall
    '');
08:07:27
@drupol:matrix.orgPolIs this what you advise me to do in your last comment on Github ?08:07:39
@jtojnar:matrix.orgJan Tojnaryes08:11:23
@jtojnar:matrix.orgJan Tojnarno need for the parens08:11:34
@drupol:matrix.orgPolOki08:12:09
@drupol:matrix.orgPolJob done. Fixed.08:16:37
@jtojnar:matrix.orgJan Tojnarlooks good at a glance now08:26:19
@jtojnar:matrix.orgJan Tojnarmaybe also build-php.nix → build-php-project.nix08:26:32
@drupol:matrix.orgPolOki08:26:38
@drupol:matrix.orgPol Shouldn't it be better build-composer-project ? 08:27:11
@jtojnar:matrix.orgJan Tojnaryou are right08:27:24
@drupol:matrix.orgPolOk I will do the change.08:27:35
@jtojnar:matrix.orgJan Tojnar personally, I would just merge composerSetupHook into buildComposerDeps but I guess it might be useful in some very rare cases 08:29:29
@drupol:matrix.orgPolSo, you would merge the bash script in the nix function ?!08:30:38
@jtojnar:matrix.orgJan Tojnar yeah. I think the composerInstallHook is useful when building multi-language projects but almost everything can just use buildComposerDeps 08:33:30
@drupol:matrix.orgPol Damn, it's been years that I'm using VSCode, I've never found a faster way to do commit fixup in the UI. I always need to do the rebase manually after. 08:34:00
@drupol:matrix.orgPol
In reply to @jtojnar:matrix.org
yeah. I think the composerInstallHook is useful when building multi-language projects but almost everything can just use buildComposerDeps
Can we revisit this later if needed ?
08:34:23
@jtojnar:matrix.orgJan Tojnargenerally, it is easier to add API then remove it08:35:10
@jtojnar:matrix.orgJan Tojnar but I do not care much either way, the important thing is that the installHook and buildComposerDeps exists 08:35:41
@drupol:matrix.orgPol
In reply to @jtojnar:matrix.org
yeah. I think the composerInstallHook is useful when building multi-language projects but almost everything can just use buildComposerDeps
But that hook is responsible for doing the installation and creating the vendor dir. While buildComposerDeps is only building the composer cache in .composer directory.
08:36:12

Show newer messages


Back to Room ListRoom Version: 6