!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

84 Members
A room for PHP developers running on Nix25 Servers

Load older messages


SenderMessageTime
7 Apr 2023
@drupol:matrix.orgPolWhat would I do without you Jan, THANKS !!!09:54:47
@drupol:matrix.orgPol
In reply to @jtojnar:matrix.org
Pol: you will need to split it into two derivations like we do in composition-c4
If you have an example of derivation, it would be nice. I can't find composition-c4
09:55:44
@jtojnar:matrix.orgJan Tojnar Pol: I meant https://github.com/fossar/composition-c4 09:56:04
@jtojnar:matrix.orgJan Tojnar Pol: or an example in Nixpkgs https://nixos.org/manual/nixpkgs/stable/#python-package-using-setuptools-rust 09:57:12
@drupol:matrix.orgPolMerci09:57:46
@jtojnar:matrix.orgJan Tojnaralso there is some context in the composition-c4 readme: https://github.com/fossar/composition-c4#what-are-the-limitations10:01:41
@drupol:matrix.orgPolI did this: https://gist.github.com/drupol/22a98547bff80aaf5e9f236b2a4d0ab610:13:56
@drupol:matrix.orgPolBut it's failing and I can't figure out why yet.10:14:23
@drupol:matrix.orgPolimage.png
Download image.png
10:14:27
@drupol:matrix.orgPol Looks like ${vendor} doesn't contain anything in it. 10:14:40
@drupol:matrix.orgPolI'm pretty sure this is something stupid.10:15:16
@drupol:matrix.orgPol Jan Tojnar: Any clue on this ? ^^ 10:16:39
@jtojnar:matrix.orgJan Tojnar Pol: might be a Nix bug, try dontPatchShebangs = true in the vendor 10:19:48
@jtojnar:matrix.orgJan Tojnarthis one, IIRC https://github.com/NixOS/nix/issues/666010:20:49
@drupol:matrix.orgPolit works when I do that... thanks... I don't know how you find it out10:21:04
@jtojnar:matrix.orgJan TojnarI hit this issue in the past, took me a long time to figure out 😿10:21:44
@drupol:matrix.orgPolThanks mate10:22:40
@drupol:matrix.orgPolpushed the changes, now I'm going to wait for CI and see if it fixes the stuff.10:23:26
@drupol:matrix.orgPolDamn, it's still failing, the checksums are different: https://github.com/NixOS/nixpkgs/pull/22512910:25:11
@drupol:matrix.orgPolI can't figure out why.10:25:16
@drupol:matrix.orgPolforget about it, I found the issue !!!10:26:43
@drupol:matrix.orgPolIT WORKS ! :) 10:28:06
@drupol:matrix.orgPolThis is super cool because we can document that and help people package their PHP app !!!10:28:52
@drupol:matrix.orgPol tgerbet, @Shyim ^^ 10:30:12
@jtojnar:matrix.orgJan Tojnar Pol: ideally, we would have a function like rustPlatform.fetchCargoTarball to avoid the boilerplate 10:33:37
@drupol:matrix.orgPolI will work on this very soon :)10:33:54
@tgerbet:matrix.orgtgerbet
In reply to @drupol:matrix.org
tgerbet, @Shyim ^^

Yeah this is not something really new, this is fine for personal/corporate stuff but not so much for nixpkgs:

  • that cannot work with dependencies only using a source repository because that make us dependent on the output of git/svn/mercurial/whatever
  • AFAIK there is no way to tell composer to use only dist tarball, there is a --prefer-dist flag but it will happily switch
10:43:26
@jtojnar:matrix.orgJan Tojnaroh, right source deps are a thing. Maybe we could post-process the output to strip the VCS directories10:51:52
@drupol:matrix.orgPol
In reply to @jtojnar:matrix.org
oh, right source deps are a thing. Maybe we could post-process the output to strip the VCS directories
Where ?
11:10:13
@tgerbet:matrix.orgtgerbet
In reply to @jtojnar:matrix.org
oh, right source deps are a thing. Maybe we could post-process the output to strip the VCS directories
I'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

Show newer messages


Back to Room ListRoom Version: 6