!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

580 Members
127 Servers

Load older messages


SenderMessageTime
16 Jun 2025
@artturin:matrix.orgArtturinSo get from the right attrset21:07:24
@rhelmot:matrix.orgrhelmotugh. thank you21:07:31
@artturin:matrix.orgArtturinpkgsBuildHost21:07:33
@rhelmot:matrix.orgrhelmotis that a more canonical name for buildPackages21:07:59
@artturin:matrix.orgArtturinYeah21:08:05
@rhelmot:matrix.orgrhelmotnice21:08:13
@rhelmot:matrix.orgrhelmotwhen are we changing nativeBuildInputs21:08:27
@artturin:matrix.orgArtturinWhen stdenv2 lol21:08:49
@artturin:matrix.orgArtturin
In reply to @rhelmot:matrix.org
sent an image.
If the package is used in both nativeBuildInputs and buildInputs then you can replace the valuessa in __spliced
21:10:06
@artturin:matrix.orgArtturin* If the package is used in both nativeBuildInputs and buildInputs then you can replace the values in __spliced21:10:17
@artturin:matrix.orgArtturinhello = hello // { __spliced = { buildHost = ...; hostTarget = ...; };}21:12:02
@artturin:matrix.orgArtturin* `hello = hello // { __spliced = { buildHost = ...; hostTarget = ...; };}`21:12:11
@rhelmot:matrix.orgrhelmot...wow21:12:16
@artturin:matrix.orgArtturin* hello = hello // { __spliced = { buildHost = pkgsBuildHost.hello; hostTarget = pkgsHostTarget.hello; };}21:12:46
@artturin:matrix.orgArtturin* `hello = hello // { __spliced = { buildHost = pkgsBuildHost.hello; hostTarget = pkgsHostTarget.hello; };}`21:12:56
@artturin:matrix.orgArtturin* ``` # pkgsHostTarget = pkgs helloHostTarget = pkgsHostTarget.hello.override; hello = helloHostTarget // { __spliced = { buildHost = pkgsBuildHost.hello; hostTarget = helloHostTarget; };} ```21:15:24
@qyliss:fairydust.spaceAlyssa Ross
In reply to @rhelmot:matrix.org
when are we changing nativeBuildInputs
You can already call it depsBuildHost instead.
22:34:09
@genericnerdyusername:matrix.orgGenericNerdyUsernamemessed around with a lot of stuff22:53:49
@genericnerdyusername:matrix.orgGenericNerdyUsername turns out the .option rvc directive lets the assembler use the compressed instructions extension even when your -march doesnt support it 22:54:26
@genericnerdyusername:matrix.orgGenericNerdyUsernameis this something i should report?22:55:04
@genericnerdyusername:matrix.orgGenericNerdyUsernameif yes, how?22:55:06
17 Jun 2025
@alexfmpe:matrix.orgalexfmpe
> pkgsCross.aarch64-android-prebuilt.stdenv.hostPlatform.isAndroid
true
> pkgsCross.aarch64-android-prebuilt.pkgsStatic.stdenv.hostPlatform.isAndroid
false

: (╯° °)╯︵ ┻━┻)

00:57:10
@alexfmpe:matrix.orgalexfmpemaybe https://github.com/NixOS/nixpkgs/pull/380342 ?00:57:17
@alexfmpe:matrix.orgalexfmpe *
> pkgsCross.aarch64-android-prebuilt.stdenv.hostPlatform.isAndroid
true
> pkgsCross.aarch64-android-prebuilt.pkgsStatic.stdenv.hostPlatform.isAndroid
false

(╯° °)╯︵ ┻━┻)

00:57:27
@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

Show newer messages


Back to Room ListRoom Version: 6