| 18 Oct 2021 |
trofi | One step deeper into bison's failure on musl: https://github.com/NixOS/nixpkgs/issues/142066 | 08:43:38 |
trofi | Which include order is correct? | 08:43:55 |
| joe left the room. | 11:46:27 |
| 20 Oct 2021 |
Rick (Mindavi) | Hmm, librsvg cross-compiling broke again since they added rsvg-convert -- it fails with a linker error after a lengthy build :( | 16:48:09 |
| phaer joined the room. | 21:01:34 |
| phaer left the room. | 21:01:40 |
sterni | is there a reliable way to distinguish between a tuple and triple when parsing a platform specification? | 21:13:43 |
sterni | the problem is that you can't just split on - and count the parts | 21:14:07 |
sterni | because of stuff like armv7a-linux-androideabi | 21:14:21 |
sterni | can't we just get rid of the nix system tuple and lib.platforms :| | 21:14:56 |
Alyssa Ross | doesn't make them any easier to parse, unless you're proposing also switching from GNU to LLVM triples | 21:15:34 |
Alyssa Ross | sternenseemann: what are you trying to do? | 21:16:18 |
sterni | I'm trying to refactor some code in cabal2nix | 21:16:56 |
sterni | and there is a flag where you can pass either a tuple or a LLVM triple | 21:17:08 |
sterni | So I thought I'd be strict about the tuple and otherwise fall back to cabal's triple parsing code | 21:17:31 |
sterni | but that doesn't work if the kernel part has a dash | 21:17:42 |
sterni | I want to avoid actually checking against a list | 21:17:55 |
sterni | and the problem is cabal also doesn't do that | 21:18:20 |
Alyssa Ross | you could use mkSystemFromString, but that would only work if it was a double or a GNU triple I think | 21:18:51 |
sterni | don't want to call nix from haskell for this | 21:19:10 |
Alyssa Ross | oh i see | 21:19:20 |
sterni | needs to work in ifd for example | 21:19:20 |
Alyssa Ross | is armv7a-linux-androideabi really a Nix double? | 21:19:52 |
sterni | and reimplementing it won't work because it checks against a list of known kernels and arches right? | 21:19:56 |
Alyssa Ross | yes | 21:20:03 |
sterni | lib.systems.elaborate parsed it correctly | 21:20:18 |
sterni | but I suppose it's not a real one | 21:20:25 |
sterni | the question is also if nix itself would accept it | 21:20:35 |
Alyssa Ross | I think the double would just be armv7a-linux | 21:21:21 |
Alyssa Ross | configure.ac is the source of truth | 21:21:26 |