!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

73 Members
A room for PHP developers running on Nix21 Servers

Load older messages


SenderMessageTime
19 May 2023
@drupol:matrix.orgPolRedacted or Malformed Event23:15:24
@drupol:matrix.orgPol Building composer and phpunit works in the branch: https://github.com/NixOS/nixpkgs/pull/232450 23:22:25
@drupol:matrix.orgPol Thanks Jan Tojnar ! 23:22:44
@drupol:matrix.orgPolSadly, it won't be possible to package psalm :( 23:51:41
@drupol:matrix.orgPolimage.png
Download image.png
23:51:45
20 May 2023
@jtojnar:matrix.orgJan Tojnar Gaël Reyrol: I have updated the Python script to try to use if for impure derivations https://github.com/fossar/composition-c4/pull/5 01:45:20
@drupol:matrix.orgPol I updated the drupol/composer-local-repo-plugin: https://github.com/drupol/composer-local-repo-plugin/ 07:52:21
@drupol:matrix.orgPol Jan Tojnar: Ideally we should not have derivation like phpstan/phpstan in the store when installing composr. 14:06:58
@drupol:matrix.orgPol * Jan Tojnar: Ideally we should not have derivation like phpstan/phpstan in the store when installing composer. 14:07:01
@drupol:matrix.orgPolHow can we prevent that?14:07:06
@drupol:matrix.orgPol(thanks for replying to Jordi btw!)14:07:27
@jtojnar:matrix.orgJan Tojnar Pol: why not? 14:07:30
@drupol:matrix.orgPol

Because

  1. It's polluting the store (not eco-friendly)
  2. It's absolutely not needed in Composer
14:08:09
@jtojnar:matrix.orgJan Tojnar well, I guess we could return includeDev flag but only use it to decide what to fetch but still include everything in the repository’s packages.json 14:09:25
@jtojnar:matrix.orgJan Tojnarthen the paths for dev packages would not exist but it would not matter14:10:11
@jtojnar:matrix.orgJan Tojnar * then the paths for dev packages would not exist but it would not matter as long as user always uses --no-dev 14:10:22
@drupol:matrix.orgPolI don't know if this would work.14:12:42
@drupol:matrix.orgPolImagine phpstan/phpstan is a hard dependency of a dependency.14:13:00
@drupol:matrix.orgPolWe would not download it then?14:13:12
@drupol:matrix.orgPol(btw, I added you as maintainer of https://github.com/drupol/composer-local-repo-plugin/ and cherry picked one of your commit from composition/c4)14:14:03
@drupol:matrix.orgPolI think that composer plugin should be hosted in nixpkgs, and not under my name.14:14:26
@drupol:matrix.orgPolBut ok, we can deal with that later.14:14:45
@drupol:matrix.orgPolI think I made something okayish.14:55:29
@drupol:matrix.orgPolI will push in a couple of seconds. Waiting for phpunit to be build.14:55:47
@jtojnar:matrix.orgJan Tojnar
In reply to @drupol:matrix.org
Imagine phpstan/phpstan is a hard dependency of a dependency.
I would expect it to be listed in packages then
15:24:45
@jtojnar:matrix.orgJan Tojnar
In reply to @drupol:matrix.org
Imagine phpstan/phpstan is a hard dependency of a dependency.
* I would expect it to be listed in packages section of composer.lock then
15:24:58
@drupol:matrix.orgPol How about using jq to nuke require-dev from composer.json and packages-dev from composer.lock ? :D 15:34:43
@drupol:matrix.orgPolI just pushed the changes in the branch.15:34:50
@drupol:matrix.orgPol The two working derivations are composer and phpunit. 15:35:01
@drupol:matrix.orgPol
In reply to @drupol:matrix.org
How about using jq to nuke require-dev from composer.json and packages-dev from composer.lock ? :D
I just tested this, it works pretty well actually.
16:09:41

Show newer messages


Back to Room ListRoom Version: 6