| 14 Sep 2025 |
| QuadRadical (Ping) changed their profile picture. | 16:51:18 |
| QuadRadical (Ping) changed their profile picture. | 20:37:00 |
| 15 Sep 2025 |
| QuadRadical (Ping) changed their profile picture. | 14:23:59 |
siraben | curious, did we ever get cosmopolitan libc off into some sort of cross? | 15:51:42 |
siraben | they are on version 4.0.2 now but we are on 2.2 | 15:53:06 |
siraben | will attempt an update and see how nontrivial it is | 15:53:57 |
siraben | https://github.com/jart/cosmopolitan/releases/tag/4.0.2 | 15:54:35 |
siraben | their release notes say bash, emacs, vim, git, links, wget work | 15:54:47 |
siraben | https://github.com/NixOS/nixpkgs/issues/381557 cosmoccStdenv proposal | 15:56:20 |
emily | AIUI it requires fairly substantial patching of software | 16:00:53 |
emily | which isn't something we'd want to carry in-tree | 16:00:57 |
siraben | ah, if so, bummer | 16:09:26 |
| matthewcroughan joined the room. | 19:06:28 |
matthewcroughan | I'm pretty close to producing an LLVM/Musl system, but I get
compat-netbsd-aarch64-unknown-linux-musl> --- md2.po ---
compat-netbsd-aarch64-unknown-linux-musl> aarch64-unknown-linux-musl-objcopy: error: 'md2.po': not stripping symbol '.L.str.1' because it is named in a relocation
| 19:06:48 |
matthewcroughan | nix build nixpkgs#pkgsLLVM.pkgsMusl.netbsd.compat -L works though 🤨 | 19:08:56 |
Tristan Ross | Do a nix-diff between the two drv files of pkgsLLVM.pkgsMusl.netbsd.compat as the base and what you're trying to build as the other. | 19:24:18 |
Tristan Ross | If you've configured cross correctly, they'll be the same. | 19:24:32 |
matthewcroughan | Is there no easy way to configure cross identically to `pkgsMusl? | 19:25:39 |
matthewcroughan | * Is there no easy way to configure cross identically to pkgsMusl? | 19:25:43 |
Tristan Ross | There is | 19:25:52 |
Tristan Ross | Your localSystem needs to be the standard GNU triple | 19:26:13 |
matthewcroughan | LIke I can't do nixpkgs.hostPlatform = pkgsMusl.hostPlatform because that's infinite recursion | 19:26:17 |
matthewcroughan | but it's what I want to | 19:26:19 |
Tristan Ross | Take a look at pkgs/top-level/variants.nix or pkgs/top-level/stage.nix to see what pkgsMusl does | 19:26:49 |
matthewcroughan | I don't want the GNU triple, I want the same evaluation and code as in pkgs/top-level/variants.nix | 19:27:01 |
matthewcroughan | since it's always correctly configured there, it should be exposed | 19:27:12 |
Tristan Ross | You have to use the GNU triple for the buildPlatform | 19:27:16 |
Tristan Ross | For hostPlatform, just use the musl one | 19:27:28 |
matthewcroughan | so for pkgsMusl, the buildPlatform is gnu? | 19:27:58 |
matthewcroughan | and that's just some default of nixpkgs? | 19:28:02 |