Nix Cross Compiling | 573 Members | |
| 125 Servers |
| Sender | Message | Time |
|---|---|---|
| 6 Jul 2021 | ||
| 15:50:41 | ||
| 22:11:42 | ||
| 9 Jul 2021 | ||
| 16:38:59 | ||
| 11 Jul 2021 | ||
| Redacted or Malformed Event | 11:30:34 | |
| Redacted or Malformed Event | 12:44:59 | |
When crossSystem is set when importing nixpkgs, aren't all entries outside of buildPackages supposed to target the cross architecture? | 13:32:13 | |
| 13:32:28 | |
*
| 13:32:54 | |
*
| 13:33:34 | |
| ius: getent likely only sets name and not pname / version, so the config isn't mangled into the final derivation name | 13:33:58 | |
| hmm, so you're saying it should target ppc, yet just doesn't have a mangled name? | 13:34:46 | |
| Cause I ran into a build failure of one of its dependencies, and ended up being confused whether it should be a cross package or not. | 13:35:54 | |
In reply to @ius:nltrix.netyes | 13:36:30 | |
| getent is a wrapper derivation generated using runCommand, so it doesn't have the pname/version split | 13:37:06 | |
| Right, if I build it separately I can see it builds a derivation of the mangled version as well as the wrapper. In that case, the issue is in the dependency | 13:38:13 | |
| 13:42:45 | |
| Git history tells me it should cross compile, but I don't see how that's supposed to work looking at the source: https://github.com/NixOS/nixpkgs/blob/master/pkgs/os-specific/bsd/netbsd/default.nix#L160
| 13:48:40 | |
It seems to run configure with a correct --host, but then run it again with CC set to the build cc, then make afterwards obviously results in wrong output | 13:51:03 | |
| 12 Jul 2021 | ||
| 08:17:49 | ||
| Hey! Just found out there's a room for cross-compilation :) | 08:19:23 | |
| ius: nice, see https://github.com/NixOS/patchelf/issues/283 | 12:25:04 | |
| Domen Kožar: btw we can have fork()ing binaries with binfmt_misc in user space however the executable formats need to be registered via /proc first, so this is inherently impure, sadly | 13:44:14 | |
| sterni (he/him): does that require sudo? | 13:44:56 | |
| yes | 13:50:51 | |
| https://www.kernel.org/doc/html/latest/admin-guide/binfmt-misc.html | 13:50:52 | |
| 13 Jul 2021 | ||
In reply to @rick:matrix.ciphernetics.nlit's awesome 😎 | 01:38:10 | |
| 15 Jul 2021 | ||
How can I get a pkgs.pkgsCross.myCustomSystem? Where is pkgsCross defined? | 10:00:42 | |
piegames: it populates the cross set with the attributes defined in lib/systems/examples.nix | 10:34:41 | |
| sterni (he/him): Yeah but what if it's not on the list? | 11:11:03 | |
| since you don't have access to nixpkgsFun it is a bit more cumbersome to emulate, something like this should work:
| 11:19:40 | |