!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

579 Members
129 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
17 Jun 2025
@alexfmpe:matrix.orgalexfmpe *
> pkgsCross.aarch64-android-prebuilt.stdenv.hostPlatform.isAndroid
true
> pkgsCross.aarch64-android-prebuilt.pkgsStatic.stdenv.hostPlatform.isAndroid
false

(╯° °)╯︵ ┻━┻

02:10:58
@emilazy:matrix.orgemilyyes, they don't nest06:09:20
@emilazy:matrix.orgemilyjust invoke Nixpkgs with a custom platform defining the things you need06:09:25
@emilazy:matrix.orgemily the pkgsFoos are really just convenience helpers 06:09:35
@emilazy:matrix.orgemily import nixpkgs { localSystem = …; crossSystem = …; } is the true interface 06:09:45
@emilazy:matrix.orgemily lib.systems.examples.aarch64-android-prebuilt // { isStatic = true; } should do it 06:11:07
@emilazy:matrix.orgemilyno guarantees it works at all06:11:10
@alexfmpe:matrix.orgalexfmpeyeah 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 config06:36:58
@alexfmpe:matrix.orgalexfmpepkgsCross.aarch64-android-prebuilt.pkgsStatic.hello works on my phone just right06:37:21
@alexfmpe:matrix.orgalexfmpe* since pkgsCross.aarch64-android-prebuilt.pkgsStatic.hello works on my phone 06:37:51

Show newer messages


Back to Room ListRoom Version: 6