| 7 Aug 2023 |
Pol | https://main.elk.zone/mathstodon.xyz/@Pol/110848508428827116 | 13:14:36 |
| 10 Aug 2023 |
| pbsds changed their display name from pbsds (UTC+1) to pbsds. | 14:54:44 |
| 13 Aug 2023 |
| @10leej:matrix.org joined the room. | 01:27:17 |
| 14 Aug 2023 |
| hexa joined the room. | 12:43:40 |
hexa | hi, is there a builder that takes care of calling composer to resolve dependencies? | 12:44:08 |
tgerbet | There is the work of Pol https://github.com/loophp/nix-php-composer-builder | 18:17:04 |
| 15 Aug 2023 |
| @10leej:matrix.org left the room. | 19:34:37 |
| 20 Aug 2023 |
| Stéphan joined the room. | 18:16:30 |
| Stéphan left the room. | 18:26:39 |
| 30 Aug 2023 |
Lars Strojny | Pol: I am trying to upgrade to the latest nix-shell version with this custom flake and I am getting this error:
error: attribute 'api' missing
at /nix/store/dhfg509620jwb0g4v83vxnrlphz3l6by-source/flake.nix:27:17:
26| phps = map
27| (php: pkgs.api.buildPhpFromComposer { inherit php; src = inputs.self; })
Any hints?
| 07:28:14 |
Pol | Lars Strojny: that project has been completely rewritten not so long ago. I'm now relying on https://github.com/loophp/nix-php-composer-builder and no longer expose `api` in loophp/nix-shell. | 07:47:55 |
Pol | That new flake will be integrated in nixpkgs soon | 07:48:27 |
Pol | The work is at https://github.com/NixOS/nixpkgs/pull/248184 | 07:49:18 |
Pol | I did that to ease the transition when that PR will be merged | 07:49:48 |
Pol | You might also like the default basic template for PHP projects in there. | 08:19:25 |
Pol | See the doc: https://github.com/loophp/nix-php-composer-builder#usage | 08:19:45 |
Lars Strojny | In reply to @drupol:matrix.org Lars Strojny: that project has been completely rewritten not so long ago. I'm now relying on https://github.com/loophp/nix-php-composer-builder and no longer expose `api` in loophp/nix-shell. Ah, thank you very much. Bad timing on my side ;) | 09:49:53 |
Pol | Feel free to test that thing, since it's going to be merged in nixpkgs at some point, testers are always welcome. | 09:52:45 |
Lars Strojny | It works fine but I get a warning: "The pcre extension does not exist, ignoring."
That’s both true and not true. ext/pcre exists but it cannot be deactivated AFAIK | 15:36:02 |
| 31 Aug 2023 |
Pol | True. This is something new in the new version. | 06:04:49 |
Pol | Maybe I should update the error message ! | 06:05:08 |
Pol | It's in here: https://github.com/loophp/nix-php-composer-builder/blob/main/src/build-support/build-php-from-composer.nix#L61 | 06:05:49 |
Pol | I updated the message... I hope it's better :) | 07:59:46 |
Lars Strojny | Q regarding php-composer-builder: how to override a package. E.g. to use PHP 8.3 with xdebug, the latest git revision needs to be build. Any pointers on how to override packages? | 10:05:05 |
Pol | There's currently no xdebug for PHP 8.3 AFAIK | 10:42:10 |
Pol | Can you share some nix code so I can give some directions? | 10:42:24 |
Pol | (my availability on internet is reduced lately since my flight home has been cancelled, I had to stay in holidays one more week to get a flight back) | 10:43:04 |
| 2 Sep 2023 |
Pol | Should we add a package depending on PHP on the top level of nixpkgs or nested under php.packages ? See my comment: https://github.com/NixOS/nixpkgs/pull/252778 | 07:12:30 |
Pol | Lars Strojny: Here's a solution: | 07:31:27 |
Pol | php = pkgs.api.buildPhpFromComposer {
src = inputs.self;
php = pkgs.php83; # Change to php81, php82, php83 etc.
withExtensions = [
(pkgs.php83.extensions.xdebug.overrideAttrs (oldAttrs: {
src = pkgs.fetchFromGitHub {
owner = "xdebug";
repo = "xdebug";
rev = "7d10e631c17694913eadafb9a07da22fb3736b2c";
hash = "sha256-El6kdI1rOTWbwmX8bL1yB9KPwpew8GNK+lOb6h3KiOI=";
};
}))
];
};
| 07:31:31 |