Nix PHP | 79 Members | |
| A room for PHP developers running on Nix | 22 Servers |
| Sender | Message | Time |
|---|---|---|
| 7 Apr 2023 | ||
| Damn, it's still failing, the checksums are different: https://github.com/NixOS/nixpkgs/pull/225129 | 10:25:11 | |
| I can't figure out why. | 10:25:16 | |
| forget about it, I found the issue !!! | 10:26:43 | |
| IT WORKS ! :) | 10:28:06 | |
| This is super cool because we can document that and help people package their PHP app !!! | 10:28:52 | |
| tgerbet, @Shyim ^^ | 10:30:12 | |
Pol: ideally, we would have a function like rustPlatform.fetchCargoTarball to avoid the boilerplate | 10:33:37 | |
| I will work on this very soon :) | 10:33:54 | |
In reply to @drupol:matrix.org Yeah this is not something really new, this is fine for personal/corporate stuff but not so much for nixpkgs:
| 10:43:26 | |
| oh, right source deps are a thing. Maybe we could post-process the output to strip the VCS directories | 10:51:52 | |
In reply to @jtojnar:matrix.orgWhere ? | 11:10:13 | |
In reply to @jtojnar:matrix.orgI'm also not sure how Composer behaves with things like Git LFS and submodules. It would also requires dealing with the things the "traditional" fetchers are dealing with like the path to the CA bundle, proxy information... Even with all of that I'm not sure it is currently possible to tell Composer to use only the dist tarball or the source for package proposing both. If I remember correctly even with --fetch-dist it will try to fallback to to the source if the dist tarball cannot be retrieved for some reasons | 11:23:16 | |
| https://planttext.com/api/plantuml/png/hP7D2i8m48JlUOg0ju3w0gKKl7YIujNsa3IhHjDisAHetzxK7ugWFVMukxFVC4mHegJO6gTRwHaBL-CuOG3612-tPUKssFeqK-K8FA7k6gECDR5F2i7ta8uc8lMLorH-C_7Cc_V7oc9ppTOgJq8nRYy1tIYMNKIBKWCjFS7Ht3yFuh0u4O2h1u-dhrGM9b3OnKaQWQxv3YEdRzwl30DhjXZ_ZESDmWf87RvwV000 | 11:32:25 | |
| here's a diagram summarizing the situation with composer. | 11:32:35 | |
| ugh, that will not be reproducible then, GitHub filters out stuff from the tarballs according to .gitattributes so dist archives will commonly be different from vcs checkout | 11:33:13 | |
| Yep and it's something that is often used in the packages to filter out tests in the dist tarballs for example | 11:34:52 | |
| 9 Apr 2023 | ||
| I'm going to try to build a builder for PHP apps, where would you add this new function ? In which file? Any advice are good here :) | 08:43:29 | |
| Oh my. | 09:42:54 | |
| I got it working. | 09:42:57 | |
| Here's what I succeeded to do in 30 minutes:
| 09:43:29 | |
| I don't know what you think, but I just found this amazing for the PHP ecosystem ! | 09:44:07 | |
| * Here's what I succeeded to do in 30 min, with the
| 09:46:19 | |
| * Here's what I succeeded to do in 30 min, with the
| 09:46:52 | |
| * Here's what I succeeded to do in 30 min, with the
| 09:49:48 | |
| I pushed my draft here: https://github.com/NixOS/nixpkgs/pull/225401 | 09:58:06 | |
| My Easter sunday starts very well :D | 09:59:46 | |
| I'm pretty sure the excitement will drop down after some reviews anyway :D | 10:00:02 | |
| 17:47:02 | ||
| 17:47:49 | ||
Jan Tojnar: I tried the finalAttrs: pattern... but I can't get it to work. | 19:06:45 | |