!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

77 Members
A room for PHP developers running on Nix22 Servers

Load older messages


SenderMessageTime
4 Jul 2023
@etu:failar.nuetuYeah, it can be specified09:16:05
@etu:failar.nuetu meta.mainProgram = "symfony"; 09:16:15
@Zevran:matrix.orgGaël Reyrolsymfony-cli misses a mainProgram yeah09:16:25
@etu:failar.nuetu I'm not sure why we rename the executable in postInstall though 09:17:01
@Zevran:matrix.orgGaël Reyrol It seems on the documentation it has to be named symfony 09:18:00
@Zevran:matrix.orgGaël Reyrolhttps://symfony.com/download#step-2-create-new-symfony-applications09:18:18
@Zevran:matrix.orgGaël ReyrolI opened a PR to solve this: https://github.com/NixOS/nixpkgs/pull/24144909:23:39
@drupol:matrix.orgPolMerci <309:38:59
7 Jul 2023
@drupol:matrix.orgPol Elis 🌱: The PR is to avoid such things: https://github.com/loophp/nix-shell/actions/runs/5479572069/jobs/9981620028 07:57:51
@drupol:matrix.orgPol This CI job tries to build a PHP version with all extensions enabled. 07:58:07
@drupol:matrix.orgPolI've already fixed a couple of stuff (see the merged pr in https://github.com/fossar/nix-phps/pulls?q=is%3Apr+is%3Aclosed).07:58:35
@etu:failar.nuetuI see07:59:21
@drupol:matrix.orgPolActually, building php with all extensions enabled is a good thing, it helped me spotting the issues on Linux and Darwin.07:59:52
@drupol:matrix.orgPol The only extension that I'm unable to fix is couchbase. I guess I will come back to it later... but right now it's the only extension where I'm totally blocked. 08:00:27
@etu:failar.nuetuDoes it work to set it like that? I'm not a big fan of having it separate from the inclusion of the package like that08:00:55
@etu:failar.nuetuI'm actually confused of that it would work :D08:01:15
@etu:failar.nuetuHowever, I would propose a different approach08:01:27
@drupol:matrix.orgPol(couchbase PR here: https://github.com/NixOS/nixpkgs/pull/240673)08:01:28
@drupol:matrix.orgPolI can test with a temporary commit.08:01:42
@drupol:matrix.orgPolI don't have a darwin here.08:01:47
@drupol:matrix.orgPolLet me do that.08:01:50
@etu:failar.nuetu
diff --git a/pkgs/top-level/php-packages.nix b/pkgs/top-level/php-packages.nix
index 2be6447f83b..83dd081003d 100644
--- a/pkgs/top-level/php-packages.nix
+++ b/pkgs/top-level/php-packages.nix
@@ -226,8 +226,6 @@ lib.makeScope pkgs.newScope (self: with self; {

     imagick = callPackage ../development/php-packages/imagick { };

-    inotify = callPackage ../development/php-packages/inotify { };
-
     mailparse = callPackage ../development/php-packages/mailparse { };

     maxminddb = callPackage ../development/php-packages/maxminddb { };
@@ -291,7 +289,9 @@ lib.makeScope pkgs.newScope (self: with self; {
     xdebug = callPackage ../development/php-packages/xdebug { };

     yaml = callPackage ../development/php-packages/yaml { };
-  } // (
+  } // (lib.optionalAttrs (!stdenv.isDarwin) {
+    inotify = callPackage ../development/php-packages/inotify { };
+  }) // (
     let
       # This list contains build instructions for different modules that one may
       # want to build.
08:04:22
@drupol:matrix.orgPolthat's an alternative indeed08:08:10
@drupol:matrix.orgPolimage.png
Download image.png
08:09:03
@drupol:matrix.orgPol I would use the enable attribute 08:10:07
@drupol:matrix.orgPolI guess that's why it has been created.08:11:19
@drupol:matrix.orgPol I should have used that for the blackfire extension as well. 08:11:32
@etu:failar.nuetuBut that's only for "built in" extensions right?08:12:00
@drupol:matrix.orgPolNo08:12:07
@drupol:matrix.orgPolIt's for all extensions08:12:17

Show newer messages


Back to Room ListRoom Version: 6