Sender | Message | Time |
---|---|---|
28 Apr 2025 | ||
oh my god, WHY does gobject-introspection-wrapper use targetPackages. this isn't accounted for by the standard guard about whether to enable introspection for a given project??? | 00:22:39 | |
okay this seems to be the actual minimal issue: pkgsCross.mingwW64.stdenv.targetPlatform.emulatorAvailable pkgs throws instead of returning false. is this intended? | 00:51:56 | |
In reply to @rhelmot:matrix.orgYeah its weird, and I wrote it lol, luckily buildroot had it working before us so I could copy some of their stuff | 05:10:01 | |
In reply to @rhelmot:matrix.orgThe issue should be that emulatorAvailable doesn't check for the actual availability of the package | 06:02:55 | |
I ended up adding an additional clause that checked if the host was x86_64 linux before returning wine, and that seems to have worked | 06:12:08 | |
| 06:15:15 | |
👀 | 06:15:45 | |
* --- a/lib/systems/default.nix +++ b/lib/systems/default.nix @@ -380,7 +380,7 @@ let # arguments, a wrapper should be used. if pkgs.stdenv.hostPlatform.canExecute final then lib.getExe (pkgs.writeShellScriptBin "exec" ''exec "$@"'') - else if final.isWindows then + else if final.isWindows && wine.meta.available then "${wine}/bin/wine${optionalString (final.parsed.cpu.bits == 64) "64"}" else if final.isLinux && pkgs.stdenv.hostPlatform.isLinux && final.qemuArch != null then "${pkgs.qemu-user}/bin/qemu-${final.qemuArch}" | 06:15:52 | |
* ``` --- a/lib/systems/default.nix +++ b/lib/systems/default.nix @@ -380,7 +380,7 @@ let # arguments, a wrapper should be used. if pkgs.stdenv.hostPlatform.canExecute final then lib.getExe (pkgs.writeShellScriptBin "exec" ''exec "$@"'') else if final.isWindows then else if final.isWindows && wine.meta.available then "${wine}/bin/wine${optionalString (final.parsed.cpu.bits == 64) "64"}" else if final.isLinux && pkgs.stdenv.hostPlatform.isLinux && final.qemuArch != null then "${pkgs.qemu-user}/bin/qemu-${final.qemuArch}" ``` | 06:16:14 | |
* ``` --- a/lib/systems/default.nix +++ b/lib/systems/default.nix @@ -380,7 +380,7 @@ let # arguments, a wrapper should be used. if pkgs.stdenv.hostPlatform.canExecute final then lib.getExe (pkgs.writeShellScriptBin "exec" ''exec "$@"'') - else if final.isWindows then + else if final.isWindows && wine.meta.available then "${wine}/bin/wine${optionalString (final.parsed.cpu.bits == 64) "64"}" else if final.isLinux && pkgs.stdenv.hostPlatform.isLinux && final.qemuArch != null then "${pkgs.qemu-user}/bin/qemu-${final.qemuArch}" leo@nixos ~/nixpkgs (git)-[master] % | 06:16:56 | |
* ``` --- a/lib/systems/default.nix +++ b/lib/systems/default.nix @@ -380,7 +380,7 @@ let # arguments, a wrapper should be used. if pkgs.stdenv.hostPlatform.canExecute final then lib.getExe (pkgs.writeShellScriptBin "exec" ''exec "$@"'') - else if final.isWindows then + else if final.isWindows && wine.meta.available then "${wine}/bin/wine${optionalString (final.parsed.cpu.bits == 64) "64"}" else if final.isLinux && pkgs.stdenv.hostPlatform.isLinux && final.qemuArch != null then "${pkgs.qemu-user}/bin/qemu-${final.qemuArch}" | 06:17:22 | |
if you submit a patch I'll test it | 06:18:25 | |
lib.meta.availableOn pls | 06:43:48 | |
Maybe like this availableOn pkgs.stdenv.buildPlatform wine | 06:47:09 | |
Or wine.stdenv.buildPlatform | 06:48:39 | |
funny error message I just got: checking bits per byte... configure: error: failed to compile test program Interestingly enough it does use the detected value in a sensible way, in exactly two places.. but I'd bet it assumes 8 bits/byte in at least one other place. | 22:09:11 | |
29 Apr 2025 | ||
when will we have cross-compilation for WITCH, the computer that does 9 bits per byte (sign + 8 actual bits) | 06:44:23 | |
Or the Apollo Guidance Computer, which was 15 bits per word (which is for all intents and purposes a byte) | 16:28:46 | |
/me laughs in Setun | 16:29:30 | |
18 trit per word | 16:29:41 | |
Yes, trit | 16:29:44 | |
1 May 2025 | ||
20:08:33 | ||
23:18:35 | ||
6 May 2025 | ||
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 I've tried it two ways: One using You can find my progress so far here: 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 | ||
07:55:08 | ||
is there any way to get a pkgs instance where buildPlatform != hostPlatform != targetPlatform? | 20:30:56 | |
I don't think so | 20:37:40 | |
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 | |
it don't actually need to build anything | 20:59:51 | |
Are you trying to do Canadian cross | 21:09:37 |