!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

84 Members
A room for PHP developers running on Nix25 Servers

Load older messages


SenderMessageTime
15 Apr 2023
@drupol:matrix.orgPol There is also a remark about deployer in the OP message. 17:07:37
@drupol:matrix.orgPol Jan Tojnar: unable to use the tag in `src` for deployer. It's missing from the repo. 18:07:28
@jtojnar:matrix.orgJan Tojnar Pol: notice the ^ 18:07:58
@drupol:matrix.orgPolOmg18:08:04
@drupol:matrix.orgPolSo smart18:08:12
@drupol:matrix.orgPolWill do it18:08:15
@drupol:matrix.orgPolAfter lunch.18:08:21
@drupol:matrix.orgPolFixed !19:04:44
@jtojnar:matrix.orgJan Tojnar Pol: regarding the programs, https://getcomposer.org/doc/articles/vendor-binaries.md#can-vendor-binaries-be-installed-somewhere-other-than-vendor-bin- 19:18:08
@drupol:matrix.orgPolyes?19:18:17
@jtojnar:matrix.orgJan Tojnar COMPOSER_BIN_DIR should work 19:18:47
@jtojnar:matrix.orgJan Tojnaror is that just for dependencies?19:19:23
@drupol:matrix.orgPolWait, I don't understand what you're trying to explain here19:24:31
@drupol:matrix.orgPolI don't think this is a good idea19:35:47
@drupol:matrix.orgPolFor example, if we take PHPUnit, 19:36:02
@drupol:matrix.orgPol The binary is not inside bin/ 19:36:14
@drupol:matrix.orgPolhttps://github.com/sebastianbergmann/phpunit/blob/main/composer.json19:36:34
@drupol:matrix.orgPol That said, there is a bin attribute in the composer.json. 19:37:09
@drupol:matrix.orgPolI guess it would be possible to automatize the creation of the symbolic link, but I'm not sure yet.19:37:41
@drupol:matrix.orgPol I guess we should loop over composer.json.bin and create the symlink. 19:40:57
@drupol:matrix.orgPol * I guess we should loop over composer.json.bin and create the symlinks. 19:41:01
@drupol:matrix.orgPolBut I have no clue how we should do that yet.19:41:45
@drupol:matrix.orgPol Should I use jq ? 19:41:55
@drupol:matrix.orgPol
      for bin in $(cat composer.json | jq -r '.bin'); do
        ln -s $out/share/php/${finalAttrs.pname}/$bin $out/bin/$(basename $bin)
      done
19:47:23
@drupol:matrix.orgPolSomething like that?19:47:27
@drupol:matrix.orgPolI'll try19:47:29
@drupol:matrix.orgPolOh it works!19:48:20
@jtojnar:matrix.orgJan Tojnaryeah, that's what I would do19:48:53
@drupol:matrix.orgPolIt's not so simple.19:50:27
@drupol:matrix.orgPolIt works for phpunit, not for grumphp... investigating.19:50:35

Show newer messages


Back to Room ListRoom Version: 6