| 1 May 2025 |
| Rosario Pulella changed their display name from Rosario Pulella to Rosuavio. | 20:08:33 |
| oak 🏳️🌈♥️ changed their display name from oak - mikatammi.fi to oak 🫱⭕🫲. | 23:18:35 |
| 6 May 2025 |
rosssmyth | I was messing around trying to see if I could build a stdenv with gcc-arm-embedded last night. Feels like it should be possible, but I'm unsure of the exact incantation to do so. I'm starting with an embedded stdenv, then trying to override it.
The first issue that apparently cc-wrapper complain if your target platform is not linux or darwin, so I have to pass NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM. Whether this is actually unsupported or not I'm unsure.
I've tried it two ways: One using pkgs.wrapCCWith { stdenvNoCC = pkgsCross.stdenvNoCC; } and one with pkgsCross.wrapCCWith. The former got me closer, but for some reason the wrapper were not being symlinked to the bin dir. Looking at the source I tried a few things, but was unsuccessful in getting it to work. The latter fails because even though I'm trying to make a nolibc wrapper, the gcc wrapper seems to try and access libc directories at pkgs/development/compilers/gcc/common/configure-flags.nix:112:31, resulting in a cannot coerce null to string.
You can find my progress so far here: https://github.com/RossSmyth/armRepro/tree/NativeWrap https://github.com/RossSmyth/armRepro/tree/EmbedWrap
If anyone has tried this in the past, let me know if you may know how to wrangle it into shape
| 16:50:03 |
| 7 May 2025 |
| Aerden joined the room. | 07:55:08 |
szlend | is there any way to get a pkgs instance where buildPlatform != hostPlatform != targetPlatform? | 20:30:56 |
Alyssa Ross | I don't think so | 20:37:40 |
szlend | I'm trying to map how pkgs<host><target> packages are offset inside another pkgs<host><target> and it would really help with understanding | 20:58:45 |
szlend | it don't actually need to build anything | 20:59:51 |
K900 | Are you trying to do Canadian cross | 21:09:37 |
K900 | Also can we PLEASE kill targetPlatform | 21:09:43 |
K900 | Yes I will keep bringing this up | 21:09:50 |
szlend | I'm trying to wire up a spliced package set with makeScopeWithSplicing that is not overlayed on top of pkgs. Usually you would wire it up with generateSplicesForMkScope, but that's not an option here. You can wire up otherSplices naively with recursion, but that explodes evaluation very quickly, as it unnecessarily evaluates against the same pkgs<host><target> instances. | 21:20:43 |
SomeoneSerge (back on matrix) | I was very stupidly confused about this even though there are only two kinds of "offsets" in the end. I just couldn't figure out which sense is meant in any particular place. TLDR: Offsets in Nixpkgs manual are points, but {host,target}Offsets in setup-hooks are vectors | 21:21:51 |
szlend | This is my understanding of how perspective shifts, but I could be very wrong: https://gist.github.com/szlend/62bfa710ff89b7dc3a871693ca34c94c | 21:22:38 |
szlend | So I kinda wanna confirm it :D | 21:22:45 |
SomeoneSerge (back on matrix) | Does root refer to the current derivation? | 21:25:44 |
K900 | Can you not overlay it on pkgs? | 21:27:35 |
szlend | I'm thinking about it like root == pkgsCross.<platform> == pkgsCross.<platform>.pkgsHostTarget (assuming those are equivalent) | 21:27:44 |
szlend | so pkgsCross.<platform>.pkgsBuildHost.pkgsBuildTarget == pkgsCross.<platform>.pkgsHostHost | 21:28:39 |
szlend | * so pkgsCross.<platform>.pkgsBuildHost.pkgsTargetTarget == pkgsCross.<platform>.pkgsHostHost | 21:28:57 |
szlend | or maybe root.pkgsBuildHost.pkgsTargetTarget == root.pkgsHostTarget (since targetTarget is +1,+1) | 21:36:15 |
SomeoneSerge (back on matrix) | It's the former, because ps: ps.pkgsTargetTarget translates by the vector of (1, 0), which is how you get from the point (0, 1) (pkgs = pkgsHostTarget) to the point (1, 1) (pkgs.pkgsTargetTarget) | 21:41:55 |
SomeoneSerge (back on matrix) | Setup-hooks here print the accumulated vectors, but not the result of translating the current' derivation's platforms (0, 1) by that vector | 21:44:01 |
szlend | I see yeah, thanks! I think I actually got it then | 21:48:52 |
| 8 May 2025 |
| 98765abc changed their profile picture. | 11:35:04 |
@curid:matrix.org | Redacted or Malformed Event | 19:03:13 |
@curid:matrix.org | Is there a better way to write this?
NIX_CFLAGS_COMPILE = if pkgs.system == "aarch64-unknown-linux-gnu" then "" else "-msse4.2" | 19:14:52 |
K900 | if !stdenv.hostPlatform.isx86 | 19:17:58 |
K900 | Or rather | 19:18:10 |
K900 | lib.optionalString stdenv.hostPlatform.isx86 "-msse4.2" | 19:18:21 |