| 23 Feb 2023 |
tgerbet | In reply to @drupol:matrix.org I noticed that ryantm-bot does not do any updates for PHP packages. Look at composer, he hasn't been updated since last december... what can we do against that? From the look of it, it is because the attr path deducted from the package name on Repology is not correct
https://r.ryantm.com/log/php-composer/2023-02-18.log
| 21:42:34 |
Pol | Ho nice finding ! | 21:43:14 |
Pol | I wonder how we could fix that. | 21:44:15 |
tgerbet | It might need an additional meta attribute?
https://ryantm.github.io/nixpkgs-update/nixpkgs-maintainer-faq/#nixpkgs-maintainer-faq | 21:44:23 |
Pol | In reply to @tgerbet:matrix.org It might need an additional meta attribute? https://ryantm.github.io/nixpkgs-update/nixpkgs-maintainer-faq/#nixpkgs-maintainer-faq What do you have in mind? What should we add in there? | 21:46:10 |
tgerbet | No clue :p
I would expect the meta.homepage attribute to still be enough to find the proper package
| 21:51:57 |
Pol | Maybe we should ping @ryantm | 21:52:52 |
tgerbet | Yep, it is likely the easiest way :p | 21:53:17 |
tgerbet | * Yep, it is likely that's easiest way :p | 21:54:19 |
tgerbet | * Yep, it is likely that's the easiest way :p | 21:54:23 |
Pol | In reply to @tgerbet:matrix.org
No clue :p
I would expect the meta.homepage attribute to still be enough to find the proper package
I would expect to grab the info from the src attribute... | 21:57:43 |
| 2 Mar 2023 |
| Berk Sümbül joined the room. | 09:17:44 |
Berk Sümbül | Hello, We are having a problem and none of the solutions I have tried have worked.
https://github.com/railwayapp/nixpacks/issues/639 | 09:18:46 |
Berk Sümbül | Do you have any solution suggestions? | 09:19:13 |
Pol | Hey hello | 09:34:30 |
Berk Sümbül | In reply to @drupol:matrix.org Hey hello Hi! | 09:35:02 |
Pol | I read the thread. | 09:35:10 |
Pol | Installing the extension won't make PHP find the extension. | 09:35:24 |
Pol | You need to build a specific version of PHP including mongodb extension | 09:35:34 |
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 |