| 17 Jun 2025 |
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 |