!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

73 Members
A room for PHP developers running on Nix21 Servers

Load older messages


SenderMessageTime
21 Apr 2023
@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
@jtojnar:matrix.orgJan Tojnar right, I am talking about merging the composerSetupHook, composerInstallHook would remain 08:36:59
@drupol:matrix.orgPol So, basically, instead of having 3 function in composerSetupHook, have only one function ? 08:37:31
@drupol:matrix.orgPol * So, basically, instead of having 3 functions in composerSetupHook, have only one function ? 08:37:38
@drupol:matrix.orgPolI think this is my biggest PR so far in the Nix project.08:45:07
@drupol:matrix.orgPol(and the documentation is not yet written)08:45:20

Show newer messages


Back to Room ListRoom Version: 6