!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

64 Members
A room for PHP developers running on Nix22 Servers

Load older messages


SenderMessageTime
8 Oct 2024
@patka:envs.netpatka All of them fail on something similar:
configure: error: PostgreSQL check failed: libpq 10.0 or later is required, please see config.log for details.
11:04:56
@patka:envs.netpatka

ma27 you always know about everything so do you perhaps know what I can do to resolve the errors above?

(I read https://github.com/NixOS/nixpkgs/issues/61580 and it saw your name. If you don't have time or whatever, feel free to not respond)

11:14:35
@drupol:matrix.orgPol(feel free to respond too :D )15:38:41
@ma27:nicht-so.sexyma27

heh :D

yeah will take a look, but no guarantees I can give an answer tonight.

17:42:16
@ma27:nicht-so.sexyma27

So, there's a PR in staging-next that'll fix the core issue of pg_config not returning what the build system expects because the one in postgresql.out is just a dumb wrapper, the actual executable is in postgresql.dev: https://github.com/NixOS/nixpkgs/pull/341421

Now why does it work in php-src-nix then? The nixpkgs input there is too old and didn't contain the changes to the package outputs that caused this regression in PHP (amongst others).
Why does it work on master? because we do lib.getDev postgresql there (i.e. the regression got fixed).
According to nix show-derivation, the pdo_pgsql from nix-shell/php-src-nix still gets the out instead of dev output from postgresql and thus the wrong pg_config.

Either make sure that pdo_pgsql gets the dev ouptut as it's the case in nixpkgs (I thought these projects re-use the package definitions from nixpkgs, so perhaps there's just an outdated nixpkgs bump at fault somewhere?)
tired and unfocused right now, so I can't tell you which of the three nixpkgs inputs in nix-shell is at fault

19:44:04
@ma27:nicht-so.sexyma27 *

So, there's a PR in staging-next that'll fix the core issue of pg_config not returning what the build system expects because the one in postgresql.out is just a dumb wrapper, the actual executable is in postgresql.dev: https://github.com/NixOS/nixpkgs/pull/341421

Now why does it work in php-src-nix then? The nixpkgs input there is too old and didn't contain the changes to the package outputs that caused this regression in PHP (amongst others).
Why does it work on master? because we do lib.getDev postgresql there (i.e. the regression got fixed).
According to nix show-derivation, the pdo_pgsql from nix-shell/php-src-nix still gets the out instead of dev output from postgresql and thus the wrong pg_config.

I think you need to make sure that pdo_pgsql gets the dev ouptut as it's the case in nixpkgs (I thought these projects re-use the package definitions from nixpkgs, so perhaps there's just an outdated nixpkgs bump at fault somewhere?)
tired and unfocused right now, so I can't tell you which of the three nixpkgs inputs in nix-shell is at fault

19:45:02
@ma27:nicht-so.sexyma27 this is the commit in nixpkgs I'm talking about fwiw https://github.com/NixOS/nixpkgs/commit/050689db307b54c180afd5a4320f57db947e0a7d#diff-53e28b8539b04d6898db30da46a18a0bd1747d920ec8e70df2cd78eb1c0fb69b 19:45:43
9 Oct 2024
@drupol:matrix.orgPolRedacted or Malformed Event07:31:14
@drupol:matrix.orgPol Interesting I wasn't aware of that thingie with postgres ! Thank you ma27 !!! 07:35:18
@drupol:matrix.orgPolI'm in the process of doing some maintenance in the PHP Packages and Bundles we've made at work... 08:15:52
@drupol:matrix.orgPolAnd while testing the bundles on a new Symfony app, I notice this: https://gist.github.com/drupol/31f96f358e9d35e1095f0ba5dd92c05608:16:04
@drupol:matrix.orgPolThis is quite new.08:16:07
@drupol:matrix.orgPolIssue opened: https://github.com/SymfonyCasts/sass-bundle/issues/7508:42:42
10 Oct 2024
@p4cmanus3r:matrix.orgp4cmanus3r joined the room.13:26:26
11 Oct 2024
@patka:envs.netpatka Any problems with me slowly converting things to buildComposerProject2? 13:44:49
@ma27:nicht-so.sexyma27I thought it had reproducibility issues? Or were those fixed?13:51:27
@patka:envs.netpatkaThose should be fixed with https://github.com/NixOS/nixpkgs/pull/343762 I've updated a bunch of packages and ran it multiple times and it all seems to work13:55:15
@ma27:nicht-so.sexyma27nice, good to know!13:58:35
12 Oct 2024
@drupol:matrix.orgPol
In reply to @patka:envs.net
Any problems with me slowly converting things to buildComposerProject2?
Absolutely not!
19:24:57
18 Oct 2024
@hansemschnokeloch:matrix.orghansemschnokeloch joined the room.12:23:12
@hansemschnokeloch:matrix.orghansemschnokelochHi, parallel extension seems not to be available on nixpkgs, how can I install this extension ? https://www.php.net/manual/en/intro.parallel.php12:25:58
@drupol:matrix.orgPol hansemschnokeloch: Have a look at the existing package extension, and try to do the same in a PR against nixpkgs ? 19:46:04
@drupol:matrix.orgPol * hansemschnokeloch: Have a look at the existing PHP extensions, and try to do the same in a PR against nixpkgs ? 19:46:14
19 Oct 2024
@hansemschnokeloch:matrix.orghansemschnokelochThx, I'll give it a try.08:58:08
@hansemschnokeloch:matrix.orghansemschnokeloch

I've following error phpize: command not found with

{ sources ? import ../npins
, nixpkgs ? sources."nixos-unstable"
, pkgs
, buildPecl ? pkgs.callPackage (nixpkgs + "/pkgs/build-support/php/build-pecl.nix") { }
,
}:

let
  versionData =
    {
      version = "1.2.4";
      sha256 = "sha256-s9W9aZpQsJLdzZ/d2E1iGDsMTAAjeWbOgWeKP6nNp0A=";
    };
in
buildPecl
{
  pname = "parallel";
  inherit (versionData) version sha256;
}
14:06:31
@hansemschnokeloch:matrix.orghansemschnokelochhow can I get phpize ?14:11:06
@hansemschnokeloch:matrix.orghansemschnokelochRedacted or Malformed Event14:21:37
@drupol:matrix.orgPolLet me give you a proper inspiration file14:34:18
@drupol:matrix.orgPolTry this? https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/php-packages/ast/default.nix14:34:42
@hansemschnokeloch:matrix.orghansemschnokelochI didn't mention that it build when I add the extension to a local version of nixpkgs. The code above is an attempt to add the extension without using my local version of nixpkgs.14:42:18

Show newer messages


Back to Room ListRoom Version: 6