!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

581 Members
130 Servers

Load older messages


SenderMessageTime
20 Oct 2021
@sternenseemann:systemli.orgsterniand there is a flag where you can pass either a tuple or a LLVM triple21:17:08
@sternenseemann:systemli.orgsterniSo I thought I'd be strict about the tuple and otherwise fall back to cabal's triple parsing code21:17:31
@sternenseemann:systemli.orgsternibut that doesn't work if the kernel part has a dash21:17:42
@sternenseemann:systemli.orgsterniI want to avoid actually checking against a list 21:17:55
@sternenseemann:systemli.orgsterniand the problem is cabal also doesn't do that21:18:20
@qyliss:fairydust.spaceAlyssa Rossyou could use mkSystemFromString, but that would only work if it was a double or a GNU triple I think21:18:51
@sternenseemann:systemli.orgsternidon't want to call nix from haskell for this21:19:10
@qyliss:fairydust.spaceAlyssa Rossoh i see21:19:20
@sternenseemann:systemli.orgsternineeds to work in ifd for example21:19:20
@qyliss:fairydust.spaceAlyssa Rossis armv7a-linux-androideabi really a Nix double?21:19:52
@sternenseemann:systemli.orgsterniand reimplementing it won't work because it checks against a list of known kernels and arches right?21:19:56
@qyliss:fairydust.spaceAlyssa Rossyes21:20:03
@sternenseemann:systemli.orgsterni lib.systems.elaborate parsed it correctly 21:20:18
@sternenseemann:systemli.orgsternibut I suppose it's not a real one21:20:25
@sternenseemann:systemli.orgsternithe question is also if nix itself would accept it21:20:35
@qyliss:fairydust.spaceAlyssa RossI think the double would just be armv7a-linux21:21:21
@qyliss:fairydust.spaceAlyssa Rossconfigure.ac is the source of truth21:21:26
@sternenseemann:systemli.orgsterni I think actually lib.platforms is my source of truth and it can parse everything in there 21:22:28
@sternenseemann:systemli.orgsterni because this code is mostly for populating badPlatforms and platforms in meta 21:22:45
@sternenseemann:systemli.orgsterniand the other place where I'll use it accepts LLVM triples, so if someone needs some crazy platform, they can just use that21:23:22
@qyliss:fairydust.spaceAlyssa Ross When I say configure.ac is the source of truth, I say that because it's what generates these values 21:23:53
@qyliss:fairydust.spaceAlyssa Rosslib.platforms is a static list.21:23:56
@qyliss:fairydust.spaceAlyssa Rossand sometimes I need to add things to lib.platforms21:24:08
@qyliss:fairydust.spaceAlyssa Rossso configure.ac is how you figure out what those should be21:24:17
@sternenseemann:systemli.orgsterniyeah, I understand what you were getting at21:24:27
@sternenseemann:systemli.orgsterniI just was trying to reign myself in21:24:45
@sternenseemann:systemli.orgsterniI should make this overly complicated for the sake of correctness21:24:55
@sternenseemann:systemli.orgsterni Alyssa Ross: okay so armv7a-linux-androideabi is possible in theory 21:31:33
@sternenseemann:systemli.orgsterniconfigure.ac only strips version numbers from the kernel and gnu/musl suffixes it seems21:32:03
@sternenseemann:systemli.orgsterniprobably the best solution would be to be more lenient with the system tuple21:33:40

Show newer messages


Back to Room ListRoom Version: 6