| 17 Jun 2025 |
alexfmpe | maybe https://github.com/NixOS/nixpkgs/pull/380342 ? | 00:57:17 |
alexfmpe | * > pkgsCross.aarch64-android-prebuilt.stdenv.hostPlatform.isAndroid
true
> pkgsCross.aarch64-android-prebuilt.pkgsStatic.stdenv.hostPlatform.isAndroid
false
(╯° °)╯︵ ┻━┻)
| 00:57:27 |
alexfmpe | * > pkgsCross.aarch64-android-prebuilt.stdenv.hostPlatform.isAndroid
true
> pkgsCross.aarch64-android-prebuilt.pkgsStatic.stdenv.hostPlatform.isAndroid
false
(╯° °)╯︵ ┻━┻
| 02:10:58 |
emily | yes, they don't nest | 06:09:20 |
emily | just invoke Nixpkgs with a custom platform defining the things you need | 06:09:25 |
emily | the pkgsFoos are really just convenience helpers | 06:09:35 |
emily | import nixpkgs { localSystem = …; crossSystem = …; } is the true interface | 06:09:45 |
emily | lib.systems.examples.aarch64-android-prebuilt // { isStatic = true; } should do it | 06:11:07 |
emily | no guarantees it works at all | 06:11:10 |
alexfmpe | yeah I know we can manually specify the system, it's just a bit of a trap that the convenience helpers evaluate without error but with inconsistent config | 06:36:58 |
alexfmpe | pkgsCross.aarch64-android-prebuilt.pkgsStatic.hello works on my phone just right | 06:37:21 |
alexfmpe | * since pkgsCross.aarch64-android-prebuilt.pkgsStatic.hello works on my phone | 06:37:51 |
emily | it's unfortunate yeah | 06:42:35 |
emily | it's non-trivial to fix though | 06:42:38 |
| jopejoe1 (4094@epvpn) changed their display name from jopejoe1 (4094@eh22) to jopejoe1 (4094@GPN23). | 12:07:05 |
| 18 Jun 2025 |
dramforever | is make nconfig in linux.configEnv supposed to work? i get
*
* Unable to find the ncurses package.
* Install ncurses (ncurses-devel or libncurses-dev
* depending on your distribution).
*
* You may also need to install pkg-config to find the
* ncurses installed in a non-default location.
*
make[2]: *** [scripts/kconfig/Makefile:234: scripts/kconfig/nconf-libs] Error 1
| 06:10:29 |
dramforever | * is make nconfig in linux.configEnv supposed to work for cross? i get
*
* Unable to find the ncurses package.
* Install ncurses (ncurses-devel or libncurses-dev
* depending on your distribution).
*
* You may also need to install pkg-config to find the
* ncurses installed in a non-default location.
*
make[2]: *** [scripts/kconfig/Makefile:234: scripts/kconfig/nconf-libs] Error 1
| 06:10:36 |
dramforever | oh i actually figured it out, this
configEnv = finalAttrs.finalPackage.overrideAttrs (previousAttrs: {
nativeBuildInputs =
should be depsBuildBuild
| 06:32:15 |
rosssmyth | I've been doing some work toward cross-compiling for MSVC. Mainly because I have some software I build at work that I build for Linux and mingw, but MSVC would be preferable for interop with other software we have. Got some basic stuff going.
- Create essentially a fetcher for the SDK
- Download the SDK and fix it up
- Wrap clang-cl
- Wrap rustc
Can compile hello world. I've not tested it on anything more complicated yet. https://github.com/RossSmyth/msvcNix
| 18:05:20 |
| Lukas(THI) changed their display name from Lukas Voreck to Lukas(THI). | 22:19:46 |
| 19 Jun 2025 |
Greg Hellings | Hey y'all, cross-compiling pkgsCross.ucrtAarch64.stdenv.cc for Windows on Arm has been broken for about a month. A quick bisect points to commit 4f8431266ce9a84b5c524a310e931681b2d7db5a | 04:27:43 |
Greg Hellings | Seems to make sense, as that change specifically creates a symlink between libunwind.so and libgcc_s.so files, which are notably absent in the ucrtAarch64 target, as it is a purely LLVM environment with no gcc present | 04:29:07 |
Greg Hellings | Nope, looks like the problem is the file paths. Windows keeps its shared libraries under /bin/ with a .dll extension whereas on other platforms they tend to be .so files in /lib/ | 04:38:50 |
dramforever | https://github.com/NixOS/nixpkgs/pull/417757 | 07:18:31 |
| FliegendeWurst changed their display name from FliegendeWurst to FliegendeWurst (@GPN23). | 12:29:29 |
| 20 Jun 2025 |
Greg Hellings | https://github.com/NixOS/nixpkgs/pull/418054 | 13:07:56 |
| thenextusername joined the room. | 14:15:51 |
| 22 Jun 2025 |
| SomeoneSerge (back on matrix) changed their display name from SomeoneSerge (UTC+U[-12,12]) to SomeoneSerge (Ever OOMed by Element). | 12:13:58 |
| @pakt:nope.chat joined the room. | 21:37:44 |
| @pakt:nope.chat | 21:44:08 |