| 2 Mar 2023 |
Pol | I just tried with my own package and it works immediately | 09:36:38 |
Pol | Do the following: | 09:36:44 |
Pol | Create a file: composer.json and add in it: { "require": { "ext-mongodb": "*" } } | 09:37:07 |
Berk Sümbül | https://github.com/railwayapp/nixpacks/blob/main/src/providers/php/mod.rs#L66 | 09:37:19 |
Pol | Then do: nix shell github:loophp/nix-shell#env-php81 --impure in the directory where the composer.json has been created. | 09:37:52 |
Pol | I don't know that mod.rs, I just know how Nix is working. | 09:38:48 |
Pol | (or at least trying to ! ) | 09:38:55 |
Berk Sümbül | In reply to @berksmbl:matrix.org https://github.com/railwayapp/nixpacks/blob/main/src/providers/php/mod.rs#L66 After this line, I added something like this to activate the plugin, but I couldn't get any results. | 09:39:07 |
Berk Sümbül | pkgs.push(Pkg::new(&format!("{}.withExtensions (pe: pe.enabled ++ [pe.all.{extension}])", &php_pkg))); | 09:39:17 |
Pol | You need to use php.buildEnv... | 09:40:05 |
Pol | Look at this page: https://nixos.wiki/wiki/PHP | 09:40:09 |
Berk Sümbül | * pkgs.push(Pkg::new(&format!("({}.withExtensions (pe: pe.enabled ++ [pe.all.{extension}]))", &php_pkg))); | 09:40:23 |
Pol | pkgs.php.buildEnv {
extensions = ({ enabled, all }: enabled ++ (with all; [
mongodb
]));
}
| 09:40:42 |
Pol | This will work. | 09:40:56 |
Berk Sümbül | In reply to @drupol:matrix.org Look at this page: https://nixos.wiki/wiki/PHP I just looked at all of them. | 09:41:01 |
Pol | This is the reason why I made https://github.com/loophp/nix-shell/ | 09:41:20 |
Pol | I wanted something that reads the composer.json and build the proper PHP version for it. | 09:41:33 |
Pol | That said, php.withExtensions should work as well. | 09:44:13 |
Pol | php = pkgs.php.withExtensions ({ enabled, all }:
enabled ++ [ all.mongodb ]);
| 09:44:39 |
Berk Sümbül | I don't know how to adapt this on nixpacks. | 09:45:48 |
Pol | I don't know nixpacks yet sorry | 09:49:58 |
Berk Sümbül | In reply to @drupol:matrix.org Look at this page: https://nixos.wiki/wiki/PHP * I've been dealing with this for 6 months, I've looked at all the documents. My native language is not English anyway and I might miss some things. | 09:56:19 |
@etu:failar.nu | Yeah, as far as I can see, the issue is not in nixpkgs, it's most probably in nixpacks | 11:04:09 |
Berk Sümbül | In reply to @etu:failar.nu Yeah, as far as I can see, the issue is not in nixpkgs, it's most probably in nixpacks Yes, and unfortunately, there is no one in their teams who have information about PHP. | 12:49:22 |
@etu:failar.nu | I find it a bit... curious that they have documented how to use it with PHP but it doesn't actually seem to work. | 12:58:13 |
@etu:failar.nu | Like... at all. | 12:58:19 |
@etu:failar.nu | I wouldn't document a totally un-tested aspect of a project to the degree that it looks officially supported | 12:58:45 |
| 7 Mar 2023 |
Pol | Oh a Jetbrains Toolbox derivation ! https://github.com/NixOS/nixpkgs/pull/206288 | 18:34:16 |
Pol | I'm wondering why it's downloading so much stuff. | 18:35:05 |
| 9 Mar 2023 |
Pol | The author doesn't seems to be very responsive :( | 09:40:02 |