!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

71 Members
A room for PHP developers running on Nix22 Servers

Load older messages


SenderMessageTime
25 Oct 2024
@ma27:nicht-so.sexyma27 the current state of the PR builds because we provide the correct PHP.
But if you do php.withExtensions [ps.parallel], it would build fine, but just wouldn't work, correct?
10:03:21
@ma27:nicht-so.sexyma27so yes, I think a user should explicitly "declare" a PHP with ZTS and only then zts-requiring extensions can be added.10:03:47
@ma27:nicht-so.sexyma27does that make sense?10:03:56
@hansemschnokeloch:matrix.orghansemschnokelochIt make sense to me, I first thought of adding an assertion somewhere like here, but didn't figured out how to do it in a php extension https://github.com/NixOS/nixpkgs/blob/86e1ad4ec007f4f0e9561886935fe9b278860de8/nixos/modules/services/web-servers/apache-httpd/default.nix#L63710:07:12
@drupol:matrix.orgPolThat could also be an option10:09:04
@drupol:matrix.orgPol(maybe I'm wrong too)10:09:16
@ma27:nicht-so.sexyma27I'd rather do it on a package-level than module-level since this is a problem on the package-level.10:09:41
@ma27:nicht-so.sexyma27the code you've linked is correct because it's an issu ein the combination of httpd and php (AFAIU)10:09:54
@ma27:nicht-so.sexyma27I mean, otherwise we catch the problem for whatever fpm/httpd/? service we build this into, but not for deployments that only use the packages, but run them on their own (i.e. without services).10:10:52
@drupol:matrix.orgPol
In reply to @drupol:matrix.org
That could also be an option
No, I mean, we could use an assertion like the one linked up there in the package parallel too.
10:11:40
@shyim:matrix.orgShyimcan we put php extension in pkgs/by-name or is that not working?16:34:37
@drupol:matrix.orgPolI don't think this is such a such a good idea19:41:53
26 Oct 2024
@shyim:matrix.orgShyimany better idea? :D https://github.com/symfony-cli/symfony-cli/pull/53010:49:10
@patka:envs.net@patka:envs.netRedacted or Malformed Event12:27:45
27 Oct 2024
@drupol:matrix.orgPol
In reply to @shyim:matrix.org
any better idea? :D https://github.com/symfony-cli/symfony-cli/pull/530
I'm pretty sure this will be rejected
16:29:03
28 Oct 2024
@hansemschnokeloch:matrix.orghansemschnokelochHi, how do you manage secrets with symfony ? Currently I encrypt the whole env.local file with agenix, it works fine but I would like to only encrypt the passwords and api keys with agenix.06:37:26
29 Oct 2024
@shyim:matrix.orgShyim
In reply to @drupol:matrix.org
I'm pretty sure this will be rejected
wdym about adding that as a patch to the symfony-cli package?
13:19:42
@drupol:matrix.orgPolI have no point of view on this 13:21:43
30 Oct 2024
@nebucatnetzer13:matrix.orgnebucatnetzer13 How can I override PHP including its extensions so that it takes the latest source?
I would like to test something but I’m a bit confused with the package set aspect.
So far I only had to override single packages.
17:31:46
@drupol:matrix.orgPol
In reply to @nebucatnetzer13:matrix.org
How can I override PHP including its extensions so that it takes the latest source?
I would like to test something but I’m a bit confused with the package set aspect.
So far I only had to override single packages.
Look how I do in loophp/php-src-nix on github
19:46:51
@nebucatnetzer13:matrix.orgnebucatnetzer13
In reply to @drupol:matrix.org
Look how I do in loophp/php-src-nix on github

Hm there's a lot going in in there.
Shouldn't something like this work?

20:14:05
@nebucatnetzer13:matrix.orgnebucatnetzer13
In reply to @drupol:matrix.org
Look how I do in loophp/php-src-nix on github
*

Hm there's a lot going in in there.
Shouldn't something like this work?
I really would just like to get version 8.3.13 and not much else.

myPhp83 = php83.override {
  version="8.3.13";
};
myPhp = myPhp83.buildEnv { .... };
20:18:50
31 Oct 2024
@drupol:matrix.orgPol
In reply to @nebucatnetzer13:matrix.org

Hm there's a lot going in in there.
Shouldn't something like this work?
I really would just like to get version 8.3.13 and not much else.

myPhp83 = php83.override {
  version="8.3.13";
};
myPhp = myPhp83.buildEnv { .... };
Just pass a src and it should be working.
09:19:56
@drupol:matrix.orgPolThis is what I do here: https://github.com/loophp/php-src-nix/blob/2470142d1f9abfcfa8972451c61ca0aaa6eb12c7/src/makePhpPackage.nix#L1509:20:11
@nebucatnetzer13:matrix.orgnebucatnetzer13
In reply to @drupol:matrix.org
This is what I do here: https://github.com/loophp/php-src-nix/blob/2470142d1f9abfcfa8972451c61ca0aaa6eb12c7/src/makePhpPackage.nix#L15

Thank, I got it to work when I passed a phpSrc.
Why doesn’t it work with just the version?
I’ve seen in nixpkgs that the version gets used in the URL of the defaultPhpSrc.

Beside that the tests for php-soap are now failing but at least the override worked :)

13:08:14
@nebucatnetzer13:matrix.orgnebucatnetzer13
In reply to @drupol:matrix.org
This is what I do here: https://github.com/loophp/php-src-nix/blob/2470142d1f9abfcfa8972451c61ca0aaa6eb12c7/src/makePhpPackage.nix#L15
* Thank, I got it to work when I passed a phpSrc.
Why doesn’t it work with just the version?
I’ve seen in nixpkgs that the version gets used in the URL of the defaultPhpSrc.
Beside that the tests for php-soap are now failing when building but at least the override itself worked :)
13:17:04
1 Nov 2024
@drupol:matrix.orgPolI don't really know much about PHP any more, I don't use it these last months, so it's hard for me to find some time to take care of it.09:14:41
@drupol:matrix.orgPol I think piotrkwiecinski fixed some stuff but he's awol since a couple of weeks now (hope he's fine!). 09:15:46
2 Nov 2024
@ma27:nicht-so.sexyma27

Pol what's your opinion on https://github.com/NixOS/nixpkgs/pull/352945 ?

Especially, do you have a better fix for the soap problem? Kinda unhappy with the current state.

13:15:49
@drupol:matrix.orgPolI have no opinion to be honest.13:37:06

Show newer messages


Back to Room ListRoom Version: 6