!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

83 Members
A room for PHP developers running on Nix24 Servers

Load older messages


SenderMessageTime
12 Jun 2022
@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
@etu:semi.socialetuYou'd need to overrideAttributes rather then override the inputs as you do10:25:18
@drupol:matrix.orgPoltrying.10:25:30
@etu:semi.socialetu
prev.extensions.oci8.overrideAttributes (oa: {
  version = "....";
  sha256 = "...";
});
10:26:10
@etu:semi.socialetuSomething like that10:26:14
@drupol:matrix.orgPol yep, seems to work, but for some reason, it's not picking the proper version of oci8. 10:27:53
@drupol:matrix.orgPol For some reason, it takes oci8 3.0.1 for php74. Weird. Investigating. 10:29:32
@drupol:matrix.orgPol And also for php56. Damn. what is going on. 10:30:16
@drupol:matrix.orgPol
    oci8 =
      if lib.versionOlder prev.php.version "7.0" then
        prev.extensions.oci8.overrideAttrs (attrs: {
          version = "2.0.12";
          sha256 = "1khqa7fs8dbyjclx05a5ls1f8paw1ij21qwlx3v7p8i3iqhnymkj";
        })
      else if lib.versionOlder prev.php.version "8.0" then
        prev.extensions.oci8.overrideAttrs (attrs: {
          version = "2.2.0";
          sha256 = "0jhivxj1nkkza4h23z33y7xhffii60d7dr51h1czjk10qywl7pyd";
        })
      else
        prev.extensions.oci8;
10:30:57
@drupol:matrix.orgPolCode should be fine, wondering where it could come from.10:31:10
@drupol:matrix.orgPolOh.10:34:26
@drupol:matrix.orgPolEven when I do:10:34:30
@drupol:matrix.orgPol
    oci8 = prev.extensions.oci8.overrideAttrs (attrs: {
      version = "2.2.0";
      sha256 = "0jhivxj1nkkza4h23z33y7xhffii60d7dr51h1czjk10qywl7pyd";
    });
10:34:36
@drupol:matrix.orgPolIt is still picking up 10:34:40
@drupol:matrix.orgPol * It is still picking up 3.0.1.10:34:43
@drupol:matrix.orgPolPR has been created: https://github.com/fossar/nix-phps/pull/11610:39:46

Show newer messages


Back to Room ListRoom Version: 6