| 9 Aug 2022 |
Pol | ramsey: Issue with PHP8.2-beta2 has been fixed! Problem solved. | 15:50:26 |
| 15 Aug 2022 |
Pol | etu: Good for you? https://github.com/NixOS/nixpkgs/pull/184634 ^^ | 16:00:29 |
Pol | * etu: Good for you? https://github.com/NixOS/nixpkgs/pull/184634 | 16:00:32 |
| 16 Aug 2022 |
Pol | Composer 2.4.0 ! https://github.com/NixOS/nixpkgs/pull/187018 | 19:23:52 |
| 17 Aug 2022 |
| pbsds joined the room. | 00:04:34 |
Pol | A quick review/merge @ https://github.com/NixOS/nixpkgs/pull/187018 M | 10:25:47 |
Pol | * A quick review/merge @ https://github.com/NixOS/nixpkgs/pull/187018 ? | 10:25:50 |
| greaka ⚡️ joined the room. | 20:21:45 |
| 18 Aug 2022 |
Pol | Thanks ! | 05:27:03 |
Gaël Reyrol | Hi, I am trying to install the yaml extension from a flake setup with home-manager, but I can't find a way to do it. I tried environment.systemPackages = with pkgs; [ php81Extensions.yaml (php81.withExtensions ({ enabled, all }: with all; [ yaml ])) ]; but when I run php -m, it does not show the extension. I started Nix/NixOS a few weeks ago so please excuse me for my newbieness. | 09:46:52 |
Jan Tojnar | In reply to @Zevran:matrix.org Hi, I am trying to install the yaml extension from a flake setup with home-manager, but I can't find a way to do it. I tried environment.systemPackages = with pkgs; [ php81Extensions.yaml (php81.withExtensions ({ enabled, all }: with all; [ yaml ])) ]; but when I run php -m, it does not show the extension. I started Nix/NixOS a few weeks ago so please excuse me for my newbieness. drop php81Extensions.yaml from environment.systemPackages, it is useless there – PHP extensions only matter in php.withPackages or php.buildEnv | 11:05:42 |
Jan Tojnar | and try using all.yaml inside withExtensions – with statement can be confusing , which scope does the value come from, see https://nix.dev/anti-patterns/language#with-attrset-expression | 11:07:11 |
Gaël Reyrol | In reply to @jtojnar:matrix.org and try using all.yaml inside withExtensions – with statement can be confusing , which scope does the value come from, see https://nix.dev/anti-patterns/language#with-attrset-expression Thanks for your reply, you said extensions only matter in php.withPackages or php.buildEnv so should I use php.withExtensions ? | 12:29:56 |
Jan Tojnar | Gaël Reyrol: if you want to have PHP with the extensions enabled then yes | 12:39:19 |
Pol | Gaël Reyrol: I made a package which reads the composer.json file and infer the extensions to load. | 18:09:05 |
Pol | Maybe you'll find it useful. Find it here: https://github.com/loophp/nix-shell/ | 18:10:01 |
Pol | A team of ~10 people is using it everyday without any issue since a bit less than a year now. | 18:10:26 |
| 19 Aug 2022 |
Gaël Reyrol | In reply to @drupol:matrix.org Maybe you'll find it useful. Find it here: https://github.com/loophp/nix-shell/ Thx ! It works like a charm <3, it would be nice to have the composer lib available from phpcs to include multiple composer files in the case of a monorepo ;) | 07:52:37 |
Pol | What do you mean? | 07:54:22 |
Pol | What is the "composer lib" ? | 07:55:07 |
Gaël Reyrol | In reply to @drupol:matrix.org What is the "composer lib" ? The function that get extensions from composer requirements | 08:03:33 |
Pol | Ooooh I see. | 08:04:02 |
Pol | It is actually. | 08:04:19 |
Pol | https://github.com/loophp/nix-shell/blob/master/src/phps.nix#L5 | 08:04:48 |
Pol | You can include this file and enjoy it | 08:04:56 |
Pol | I guess there are room for improvements and features, feel free to suggest what I could do | 08:05:21 |
Gaël Reyrol | In reply to @drupol:matrix.org I guess there are room for improvements and features, feel free to suggest what I could do Sure but I need to learn a bit more about Nix lang :) | 08:15:36 |
Pol | The problem that I have is that if you want to read a user file, then you must add --impure, it's mandatory. It's ugly I know, but it works well. | 08:15:43 |
Pol | Same here, I'm learning everyday :) | 08:15:57 |
Pol | Let me know if you have any question I can assist you with, don't hesitate. | 08:16:15 |