| 7 Apr 2023 |
Pol | How is this possible? https://github.com/NixOS/nixpkgs/pull/225054 | 01:32:02 |
Pol | In reply to @drupol:matrix.org Merged! Thanks Lars Strojny ! This is not widely available on Nix ! Please let us know if you encounter any issue. | 09:19:58 |
Pol | Jan Tojnar: Can you develop your last comment with FOD? I don't understand it | 09:39:44 |
Jan Tojnar | Pol: FODs must be reproducible – the hash of their output must remain the same | 09:42:24 |
Jan Tojnar | that is not possible if the derivation output references other derivations, since when those derivations change, so would their output paths, and as a result, the output of the FOD | 09:43:27 |
Pol | Oooh FOD => Fixed Output Derivation ! | 09:43:50 |
Pol | What would you suggest to fix this then? | 09:44:05 |
Pol | I'm playing on this in this PR : https://github.com/NixOS/nixpkgs/pull/225129 | 09:44:21 |
Jan Tojnar | Pol: you will need to split it into two derivations like we do in composition-c4 | 09:50:53 |
Pol | I'm going to play with it. | 09:51:21 |
Pol | I've also opened a new issue at composer/composer: https://github.com/composer/composer/issues/11422 | 09:51:31 |
Jan Tojnar | Pol: see https://github.com/composer/composer/issues/9768 for previous discussion | 09:52:06 |
Pol | What would I do without you Jan, THANKS !!! | 09:54:47 |
Pol | 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 |
Jan Tojnar | Pol: I meant https://github.com/fossar/composition-c4 | 09:56:04 |
Jan Tojnar | Pol: or an example in Nixpkgs https://nixos.org/manual/nixpkgs/stable/#python-package-using-setuptools-rust | 09:57:12 |
Pol | Merci | 09:57:46 |
Jan Tojnar | also there is some context in the composition-c4 readme: https://github.com/fossar/composition-c4#what-are-the-limitations | 10:01:41 |
Pol | I did this: https://gist.github.com/drupol/22a98547bff80aaf5e9f236b2a4d0ab6 | 10:13:56 |
Pol | But it's failing and I can't figure out why yet. | 10:14:23 |
Pol |  Download image.png | 10:14:27 |
Pol | Looks like ${vendor} doesn't contain anything in it. | 10:14:40 |
Pol | I'm pretty sure this is something stupid. | 10:15:16 |
Pol | Jan Tojnar: Any clue on this ? ^^ | 10:16:39 |
Jan Tojnar | Pol: might be a Nix bug, try dontPatchShebangs = true in the vendor | 10:19:48 |
Jan Tojnar | this one, IIRC https://github.com/NixOS/nix/issues/6660 | 10:20:49 |
Pol | it works when I do that... thanks... I don't know how you find it out | 10:21:04 |
Jan Tojnar | I hit this issue in the past, took me a long time to figure out 😿 | 10:21:44 |
Pol | Thanks mate | 10:22:40 |
Pol | pushed the changes, now I'm going to wait for CI and see if it fixes the stuff. | 10:23:26 |