!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

75 Members
A room for PHP developers running on Nix21 Servers

Load older messages


SenderMessageTime
21 Apr 2023
@jtojnar:matrix.orgJan Tojnar Pol: you will also want to do previousAttrs.buildPhase or ''runHook ...'' for the phases 07:54:01
@drupol:matrix.orgPolOooh ! you're right.07:54:16
@drupol:matrix.orgPolAs usual.07:54:17
@drupol:matrix.orgPolGoing to do it now.07:54:20
@jtojnar:matrix.orgJan Tojnarthe empty phases are a bit ugly but I do not see a way around them07:55:01
@drupol:matrix.orgPol We could override them in the composer-setup-hook.sh I guess? 07:55:26
@drupol:matrix.orgPol Instead of hooking on preConfigurePhase, we override the phase itself ? 07:55:46
@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

Show newer messages


Back to Room ListRoom Version: 6