!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

78 Members
A room for PHP developers running on Nix21 Servers

Load older messages


SenderMessageTime
9 Apr 2023
@drupol:matrix.orgPolRedacted or Malformed Event19:10:32
@drupol:matrix.orgPol Jan Tojnar: I can't use the builder outside of the PHP packages scope... example, how can I use buildPHPproject for PHPActor ? (https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/tools/phpactor/default.nix) 19:17:36
@drupol:matrix.orgPolWhen I try to add it in the first line, I get:19:17:53
@drupol:matrix.orgPol error: evaluation aborted with the following error message: 'Function called without required argument "buildPHPproject" at /nix/store/qa7zxpw9g2qixsqblaga7hsasqhs65kb-source/pkgs/development/tools/phpactor/default.nix:1' 19:18:24
10 Apr 2023
@jtojnar:matrix.orgJan Tojnar Pol: it is defined inside php.packages scope 09:20:49
@jtojnar:matrix.orgJan Tojnarnot top-level09:20:57
@drupol:matrix.orgPolHow should I call this for phpactor which is out of the php.packages scope then ?09:33:23
@jtojnar:matrix.orgJan Tojnar take php as argument to the package and use php.packages.buildPhpProject 09:34:58
11 Apr 2023
@drupol:matrix.orgPol Jan Tojnar: I tried, doesn't work at all. I don't know what's the problem 07:06:51
@drupol:matrix.orgPolimage.png
Download image.png
07:17:43
@drupol:matrix.orgPolAnd the source:07:18:22
@drupol:matrix.orgPol
{ fetchFromGitHub php }:

php.packages.buildPHPproject rec {
  pname = "phpactor";
  version = "2023.01.21";

  src = fetchFromGitHub {
    owner = "phpactor";
    repo = "phpactor";
    rev = version;
    hash = "sha256-jWZgBEaffjQ5wCStSEe+eIi7BJt6XAQFEjmq5wvW5V8=";
  };
}
07:18:28
@drupol:matrix.orgPol *
{ fetchFromGitHub, php }:

php.packages.buildPHPproject rec {
  pname = "phpactor";
  version = "2023.01.21";

  src = fetchFromGitHub {
    owner = "phpactor";
    repo = "phpactor";
    rev = version;
    hash = "sha256-jWZgBEaffjQ5wCStSEe+eIi7BJt6XAQFEjmq5wvW5V8=";
  };
}
07:18:38
@drupol:matrix.orgPolimage.png
Download image.png
07:51:03
@drupol:matrix.orgPol I just don't understand. How come that buildPecl is available, while buildPHPproject is not ? 07:51:24
@drupol:matrix.orgPol I also created a PR to be able to disable session support in PHP derivation at: https://github.com/NixOS/nixpkgs/pull/225709 08:45:40
@drupol:matrix.orgPolFor which I'm looking for review :)08:52:59
@drupol:matrix.orgPolAnd if you're wondering why I need this PR is to show my colleagues that the version of PHP I use doesnt have support for Session and I can still do persistent storage in my app.10:23:04
@jtojnar:matrix.orgJan Tojnar Pol: https://github.com/NixOS/nixpkgs/blob/2dfbb7c8891da0429caa8c0d198570bd58d0f9be/pkgs/development/interpreters/php/generic.nix#L162-L163 16:13:20
@drupol:matrix.orgPolchecking17:10:37
@drupol:matrix.orgPol
In reply to @jtojnar:matrix.org
Pol: https://github.com/NixOS/nixpkgs/blob/2dfbb7c8891da0429caa8c0d198570bd58d0f9be/pkgs/development/interpreters/php/generic.nix#L162-L163
I tried to add it in that list, same result...
17:10:58
@drupol:matrix.orgPolI'll try again now.17:11:01
@drupol:matrix.orgPolNope, big nope.17:16:25
@drupol:matrix.orgPol Even if I remove buildPecl from that list, it's still available when I do php.buildPecl ! 17:16:42
@drupol:matrix.orgPol Jan Tojnar: Are you totally against adding the flag sessionSupport ? Wouldn't it be a good idea to add a flag for each configuration flag at some point in the future? 17:22:56
@drupol:matrix.orgPolArgh you just replied 17:23:00
@drupol:matrix.orgPolReading.17:23:02
@drupol:matrix.orgPolClosed the issue, thx for your input17:23:29
@jtojnar:matrix.orgJan Tojnarnot really against, I just think the cost is 0.1 and the benefit 0.0517:24:39
@drupol:matrix.orgPolOk it's fine, I was just proposing17:24:54

Show newer messages


Back to Room ListRoom Version: 6