!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

76 Members
A room for PHP developers running on Nix22 Servers

Load older messages


SenderMessageTime
2 Mar 2023
@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
@berksmbl:matrix.orgBerk 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
@drupol:matrix.orgPolThis is the reason why I made https://github.com/loophp/nix-shell/09:41:20
@drupol:matrix.orgPol I wanted something that reads the composer.json and build the proper PHP version for it. 09:41:33
@drupol:matrix.orgPol That said, php.withExtensions should work as well. 09:44:13
@drupol:matrix.orgPol
php = pkgs.php.withExtensions ({ enabled, all }:
  enabled ++ [ all.mongodb ]);
09:44:39
@berksmbl:matrix.orgBerk SümbülI don't know how to adapt this on nixpacks.09:45:48
@drupol:matrix.orgPolI don't know nixpacks yet sorry09:49:58
@berksmbl:matrix.orgBerk 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.nuetuYeah, as far as I can see, the issue is not in nixpkgs, it's most probably in nixpacks11:04:09
@berksmbl:matrix.orgBerk 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.nuetuI 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.nuetuLike... at all.12:58:19
@etu:failar.nuetuI wouldn't document a totally un-tested aspect of a project to the degree that it looks officially supported12:58:45
7 Mar 2023
@drupol:matrix.orgPolOh a Jetbrains Toolbox derivation ! https://github.com/NixOS/nixpkgs/pull/20628818:34:16
@drupol:matrix.orgPolI'm wondering why it's downloading so much stuff.18:35:05
9 Mar 2023
@drupol:matrix.orgPolThe author doesn't seems to be very responsive :(09:40:02
10 Mar 2023
@drupol:matrix.orgPolIf you'd like to have Jetbrains Toolbox on NixOS, review this PR please! https://github.com/NixOS/nixpkgs/pull/22054120:51:01
@drupol:matrix.orgPolI had to create a new PR since the original author was totally unresponsive.20:51:21
11 Mar 2023
@drupol:matrix.orgPol Can you please test jetbrains-toolbox on your machine? NIXPKGS_ALLOW_UNFREE=1 nix run "github:drupol/nixpkgs/init/jetbrains-toolbox-init#jetbrains-toolbox" --impure 10:18:22
12 Mar 2023
@drupol:matrix.orgPol Anybody had a chance to test jetbrains-toolbox already? 09:44:46
13 Mar 2023
@drupol:matrix.orgPolhttps://3v4l.org/12vrb#v8.2.3 #facepalm13:56:50
@drupol:matrix.orgPol jetbrains-toolbox is in Nix ! 15:47:09
15 Mar 2023
@etu:failar.nuetuPHP update time it seems07:52:43

Show newer messages


Back to Room ListRoom Version: 6