!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

75 Members
A room for PHP developers running on Nix22 Servers

Load older messages


SenderMessageTime
10 Jun 2022
@etu:semi.socialetu
In reply to @drupol:matrix.org
https://github.com/loophp/typed-generators
Wow, that looks useful, we use quite some generators :)
10:34:16
@drupol:matrix.orgPolIf you like generators, you might like this thing: https://github.com/loophp/collection/10:34:40
@drupol:matrix.orgPolIt is basically a collection library fully lazy.10:35:30
@drupol:matrix.orgPolWhich contains ~100 algorithms to transform the data.10:35:47
@drupol:matrix.orgPolIt's extremelly easy to use and play with.10:35:58
@drupol:matrix.orgPolCheck the usage page: https://loophp-collection.readthedocs.io/en/latest/pages/usage.html10:37:03
@drupol:matrix.orgPolThis Fibonacci example is summarizing everything... https://loophp-collection.readthedocs.io/en/latest/pages/usage.html#fibonacci-sequence10:38:02
@drupol:matrix.orgPolWe need a merge here : https://github.com/NixOS/nixpkgs/pull/17716311:29:04
@jtojnar:matrix.orgJan Tojnar
In reply to @drupol:matrix.org
https://github.com/loophp/typed-generators
interesting, does it support shrinking like https://github.com/steos/php-quickcheck?
12:49:43
@drupol:matrix.orgPolShrinking? Let me check this thing out.12:53:08
@drupol:matrix.orgPolOh this is property based testing12:53:57
@drupol:matrix.orgPolNo it doesn't support that, it's only for generating random strings. I don't have any quantifier in it or anything like that.12:54:42
12 Jun 2022
@drupol:matrix.orgPol Jan Tojnar: How to add the json extension in fossar/nix-phps ? Trying to find an existing example... without luck. Tried this: https://github.com/fossar/nix-phps/pull/115/files#diff-a62a461a6a9e5487cb543755006619c4f84a489efe00b1e135cf605da6463a0fR191 without luck either. 08:11:01
@drupol:matrix.orgPolprev.mkExtension !08:15:38
@drupol:matrix.orgPolWorking :)08:15:41
@drupol:matrix.orgPol Jan Tojnar: I created a PR to restore PHP74 in fossar/nix-phps, but I'm now blocked here: https://github.com/fossar/nix-phps/runs/6848825531?check_suite_focus=true#step:8:5 08:53:17
@drupol:matrix.orgPolIf you could give it a look... the pr is here: https://github.com/fossar/nix-phps/pull/11508:53:41
18 Jun 2022
@drupol:matrix.orgPolAdding to my todo list: create a bash script inspired by https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/web-apps/hedgedoc/update.sh but for PHP interpreter.10:34:52
@etu:semi.socialetu Pol: that would be handy, and that it updates all versions😃 15:30:02
@drupol:matrix.orgPolI'll do it at the end of June most probably 15:57:54
@jtojnar:matrix.orgJan Tojnar you do not even need the shell script, you can just create an updateScript using genericUpdater and then use update.nix 16:13:46
@drupol:matrix.orgPolAh this is something I really need to dig :)17:10:12
23 Jun 2022
@drupol:matrix.orgPol etu: When removing the version parameter from here: https://github.com/NixOS/nixpkgs/commit/42b3cedbb5b880e035258b86b2565a9341d4413b 10:16:16
@drupol:matrix.orgPol It broke fossar/nix-phps and also loophp/nix-shell. I'm looking for a way to fix this. 10:16:36
@drupol:matrix.orgPolDo you have any clue on what is the best strategy ?10:16:46
@drupol:matrix.orgPol (see the relevant lines in fossar/nix-phps: https://github.com/fossar/nix-phps/blob/master/pkgs/package-overrides.nix#L291 10:17:20
@drupol:matrix.orgPol * (see the relevant lines in fossar/nix-phps: https://github.com/fossar/nix-phps/blob/master/pkgs/package-overrides.nix#L291 ) 10:17:24
@drupol:matrix.orgPol

We are doing:

prev.extensions.oci8.override ({
          version = "2.0.12";
          sha256 = "1khqa7fs8dbyjclx05a5ls1f8paw1ij21qwlx3v7p8i3iqhnymkj";
        })
10:17:44
@drupol:matrix.orgPol But that is not working anymore since the version parameter is gone. 10:17:57
@drupol:matrix.orgPol * It broke the oci8 extension in fossar/nix-phps and also loophp/nix-shell. I'm looking for a way to fix this. 10:22:39

There are no newer messages yet.


Back to Room ListRoom Version: 6