!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

72 Members
A room for PHP developers running on Nix21 Servers

Load older messages


SenderMessageTime
12 Mar 2022
@jtojnar:matrix.orgJan Tojnar the guide relies on the fact that when default.nix contains a function, nix-shell and nix-build will automatically call it (and since you do not pass the pkgs argument, the default value after the question mark will be used) 23:40:39
@jtojnar:matrix.orgJan Tojnarmany of these guides are too “monkey see, monkey do” but unfortunately, the other alternative is learning Nix syntax and semantics first and then the same for Nixpkgs, which is a very long road23:43:50
@jtojnar:matrix.orgJan Tojnar * many of these guides are too “monkey see, monkey do” for my taste. But unfortunately, the other alternative is learning Nix syntax and semantics first and then the same for Nixpkgs, which is a very long road23:44:56
@ramsey:matrix.orgramseyRight. Unfortunately, for me this monkey needs to see more so that I can do more 😉23:45:16
@jtojnar:matrix.orgJan TojnarI would recommend getting intimately familiar with the syntax section of Nix manual https://nixos.org/manual/nix/stable/expressions/writing-nix-expressions.html23:46:26
@jtojnar:matrix.orgJan Tojnarand then either ask about the stuff that is unclear in the guides, or assume it is not important for the task if it is not explained23:48:03
@ramsey:matrix.orgramseyk23:48:19
@jtojnar:matrix.orgJan Tojnar
In reply to @ramsey:matrix.org
So, nix builds its own Phar instead of using the one provided by the maintainers. Interesting. I don't see how this is really relevant in PHP's case, since it's not packaging a binary for the target system.
building from source is not just about portability (which is indeed less of an issue with text-based languages like PHP), the primary concern is that the PHAR is opaque, so it is hard to solve issues with it (e.g. apply patches)
23:52:24
@ramsey:matrix.orgramseygood point... it can also be environment-specific23:53:06
@ramsey:matrix.orgramseyi.e., include the wrong versions of packages for the environment you're on23:53:26
@jtojnar:matrix.orgJan Tojnarthen there is also a security aspect – this is not critical for us, since we do not have the resources to verify each source at the moment, but that would be another argument for Debian or Fedora23:54:36
@jtojnar:matrix.orgJan Tojnarbut NixOS is still quite pragmatic, so if not using PHAR from upstream is too much work, we will use it23:56:34
@jtojnar:matrix.orgJan Tojnar * but NixOS is still quite pragmatic, so if not using PHAR from upstream is too much work, we will use it (in fact, we do that for most PHP tools)23:57:00
13 Mar 2022
@drupol:matrix.orgPolPhive PR for Nix: https://github.com/NixOS/nixpkgs/pull/16398610:35:09
@drupol:matrix.orgPolThe only thing I'm unsure is the license.10:35:23
@drupol:matrix.orgPolI asked the author: https://twitter.com/drupol/status/150295675163270349510:36:40
@drupol:matrix.orgPol Jan Tojnar: PR fixed, I also added all the missing hooks in other PHP packages. 15:41:16
@guillemcanal:matrix.orgGuillem CANAL joined the room.16:39:21
@drupol:matrix.orgPol
In reply to @drupol:matrix.org
Phive PR for Nix: https://github.com/NixOS/nixpkgs/pull/163986
ramsey: PR is done, I guess it will be available very soon.
20:22:53
@ramsey:matrix.orgramseyNice!22:25:27
@ramsey:matrix.orgramsey Now, I just need to figure out how to write a proper .nix file. 22:26:08
@drupol:matrix.orgPolCopy paste the right one and hack into it :)🙏22:33:48
14 Mar 2022
@drupol:matrix.orgPol
In reply to @drupol:matrix.org
ramsey: PR is done, I guess it will be available very soon.
Merged !
04:26:28
@grahamc:nixos.org@grahamc:nixos.orgOh hi ramsey!11:12:23
15 Mar 2022
@drupol:matrix.orgPol ramsey: Phive is now available ! https://search.nixos.org/packages?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=phive 13:29:06
17 Mar 2022
@drupol:matrix.orgPolI created this PR: https://github.com/NixOS/nixpkgs/pull/164576 as soon as the 3 PHP versions are released, I'll mark the PR as ready to review. (currently only php 8.0.17 has been released, others are only tagged on Github).11:03:43
@drupol:matrix.orgPol Build of PHP 8.0.17 is successful on all platforms except aarch64-darwin as usual. 12:24:18
18 Mar 2022
@drupol:matrix.orgPol I just created my first PHP app with Nix flake: nix run github:drupol/framework-x/feat/use-nix 12:47:51
@drupol:matrix.orgPol invited @stephank-569517b916b6c7089cc233d9:gitter.imstephank (Stéphan Kochen).12:48:08
@drupol:matrix.orgPol I can't do the same with symfony/demo because of: ` 15:21:06

There are no newer messages yet.


Back to Room ListRoom Version: 6