!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

80 Members
A room for PHP developers running on Nix23 Servers

Load older messages


SenderMessageTime
23 Feb 2023
@tgerbet:matrix.orgtgerbetIt might need an additional meta attribute? https://ryantm.github.io/nixpkgs-update/nixpkgs-maintainer-faq/#nixpkgs-maintainer-faq21:44:23
@drupol:matrix.orgPol
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:matrix.orgtgerbet

No clue :p

I would expect the meta.homepage attribute to still be enough to find the proper package

21:51:57
@drupol:matrix.orgPolMaybe we should ping @ryantm21:52:52
@tgerbet:matrix.orgtgerbetYep, it is likely the easiest way :p21:53:17
@tgerbet:matrix.orgtgerbet * Yep, it is likely that's easiest way :p21:54:19
@tgerbet:matrix.orgtgerbet * Yep, it is likely that's the easiest way :p21:54:23
@drupol:matrix.orgPol
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
@berksmbl:matrix.orgBerk Sümbül joined the room.09:17:44
@berksmbl:matrix.orgBerk SümbülHello, We are having a problem and none of the solutions I have tried have worked. https://github.com/railwayapp/nixpacks/issues/63909:18:46
@berksmbl:matrix.orgBerk SümbülDo you have any solution suggestions?09:19:13
@drupol:matrix.orgPolHey hello09:34:30
@berksmbl:matrix.orgBerk Sümbül
In reply to @drupol:matrix.org
Hey hello
Hi!
09:35:02
@drupol:matrix.orgPolI read the thread.09:35:10
@drupol:matrix.orgPolInstalling the extension won't make PHP find the extension.09:35:24
@drupol:matrix.orgPolYou need to build a specific version of PHP including mongodb extension09:35:34
@drupol:matrix.orgPolI just tried with my own package and it works immediately09:36:38
@drupol:matrix.orgPolDo the following:09:36:44
@drupol:matrix.orgPol Create a file: composer.json and add in it: { "require": { "ext-mongodb": "*" } } 09:37:07
@berksmbl:matrix.orgBerk Sümbülhttps://github.com/railwayapp/nixpacks/blob/main/src/providers/php/mod.rs#L6609:37:19
@drupol:matrix.orgPol Then do: nix shell github:loophp/nix-shell#env-php81 --impure in the directory where the composer.json has been created. 09:37:52
@drupol:matrix.orgPol I don't know that mod.rs, I just know how Nix is working. 09:38:48
@drupol:matrix.orgPol(or at least trying to ! )09:38:55
@berksmbl:matrix.orgBerk 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
@berksmbl:matrix.orgBerk Sümbül pkgs.push(Pkg::new(&format!("{}.withExtensions (pe: pe.enabled ++ [pe.all.{extension}])", &php_pkg))); 09:39:17
@drupol:matrix.orgPol You need to use php.buildEnv... 09:40:05
@drupol:matrix.orgPolLook at this page: https://nixos.wiki/wiki/PHP09:40:09
@berksmbl:matrix.orgBerk Sümbül * pkgs.push(Pkg::new(&format!("({}.withExtensions (pe: pe.enabled ++ [pe.all.{extension}]))", &php_pkg))); 09:40:23
@drupol:matrix.orgPol
pkgs.php.buildEnv {
    extensions = ({ enabled, all }: enabled ++ (with all; [
      mongodb
    ]));
}
09:40:42
@drupol:matrix.orgPolThis will work.09:40:56

Show newer messages


Back to Room ListRoom Version: 6