| 16 Jun 2025 |
Artturin | Yeah | 21:08:05 |
rhelmot | nice | 21:08:13 |
rhelmot | when are we changing nativeBuildInputs | 21:08:27 |
Artturin | When stdenv2 lol | 21:08:49 |
Artturin | 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 | * If the package is used in both nativeBuildInputs and buildInputs then you can replace the values in __spliced | 21:10:17 |
Artturin | hello = hello // { __spliced = { buildHost = ...; hostTarget = ...; };} | 21:12:02 |
Artturin | * `hello = hello // { __spliced = { buildHost = ...; hostTarget = ...; };}` | 21:12:11 |
rhelmot | ...wow | 21:12:16 |
Artturin | * hello = hello // { __spliced = { buildHost = pkgsBuildHost.hello; hostTarget = pkgsHostTarget.hello; };} | 21:12:46 |
Artturin | * `hello = hello // { __spliced = { buildHost = pkgsBuildHost.hello; hostTarget = pkgsHostTarget.hello; };}` | 21:12:56 |
Artturin | * ```
# pkgsHostTarget = pkgs
helloHostTarget = pkgsHostTarget.hello.override;
hello = helloHostTarget // { __spliced = { buildHost = pkgsBuildHost.hello; hostTarget = helloHostTarget; };}
``` | 21:15:24 |
Alyssa Ross | In reply to @rhelmot:matrix.org when are we changing nativeBuildInputs You can already call it depsBuildHost instead. | 22:34:09 |
GenericNerdyUsername | messed around with a lot of stuff | 22:53:49 |
GenericNerdyUsername | 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 | is this something i should report? | 22:55:04 |
GenericNerdyUsername | if yes, how? | 22:55:06 |
| 17 Jun 2025 |
alexfmpe | > pkgsCross.aarch64-android-prebuilt.stdenv.hostPlatform.isAndroid
true
> pkgsCross.aarch64-android-prebuilt.pkgsStatic.stdenv.hostPlatform.isAndroid
false
: (╯° °)╯︵ ┻━┻)
| 00:57:10 |
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 |