!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

74 Members
A room for PHP developers running on Nix21 Servers

Load older messages


SenderMessageTime
19 Apr 2023
@shyim:matrix.orgShyimI packaged Roadrunner for Nix. Looking for reviewers :) https://github.com/NixOS/nixpkgs/pull/22714421:41:57
21 Apr 2023
@drupol:matrix.org@drupol:matrix.org Hey PHP !
Yesterday I finally made the changes in this PR https://github.com/NixOS/nixpkgs/pull/225401 to enable hooks.
That was quite complicated for me since I was not aware of those hooks in Nix overall, so, a lot of back and forth with some community members to tell me where to look for.
The PR has been updated with those hooks now and it works like before.
There is only one derivation which is broken "#wp-cli". Apparently, it requires wrapProgram in its postInstall hook, but it cannot find it despite it is in nativeBuildInputs. I guess it's a minor issue, but I'll make a pause today on that thing because I've been spending too much time on it lately.
Feel free to try the branch and eventually help me with that wp-cli derivation!
Enjoy your friday all !
07:25:39
@drupol:matrix.org@drupol:matrix.org Thanks Jan Tojnar going to try your suggestion ! 07:32:09
@drupol:matrix.org@drupol:matrix.orgThanks, it fixed the issue :)07:39:47
@drupol:matrix.org@drupol:matrix.orgYou're amazing, thanks !07:39:51
@drupol:matrix.org@drupol:matrix.orgPR is back to green ! :)07:52:29
@jtojnar:matrix.orgJan Tojnar Pol: you will also want to do previousAttrs.buildPhase or ''runHook ...'' for the phases 07:54:01
@drupol:matrix.org@drupol:matrix.orgOooh ! you're right.07:54:16
@drupol:matrix.org@drupol:matrix.orgAs usual.07:54:17
@drupol:matrix.org@drupol:matrix.orgGoing 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.org@drupol:matrix.org We could override them in the composer-setup-hook.sh I guess? 07:55:26
@drupol:matrix.org@drupol:matrix.org 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.org@drupol:matrix.orgJob 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.org@drupol:matrix.orgSo, something like that?08:07:16
@drupol:matrix.org@drupol:matrix.org
    installPhase = (previousAttrs.installPhase or ''
      runHook preInstall
      runHook postInstall
    '');
08:07:27
@drupol:matrix.org@drupol:matrix.orgIs 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.org@drupol:matrix.orgOki08:12:09
@drupol:matrix.org@drupol:matrix.orgJob done. Fixed.08:16:37
@jtojnar:matrix.orgJan Tojnarlooks good at a glance now08:26:19

Show newer messages


Back to Room ListRoom Version: 6