| 19 Aug 2025 |
Artturin | in systemPackages | 15:17:58 |
QuadRadical (Ping) | hmm what is ... here? | 15:20:41 |
QuadRadical (Ping) | what is pkgs.path? | 15:20:47 |
Artturin | nix-repl> pkgs.path
/home/art/nixgits/my-nixpkgs
| 15:21:10 |
QuadRadical (Ping) | oh i see | 15:21:20 |
QuadRadical (Ping) | i can just use my nixpkgs input presumably too | 15:21:31 |
Artturin | yeah, pkgs.path refers to that | 15:21:39 |
Artturin | all-packages.nix
# For convenience, allow callers to get the path to Nixpkgs.
path = ../..;
| 15:22:17 |
QuadRadical (Ping) | ah nice | 15:22:32 |
QuadRadical (Ping) | hmm | 15:22:34 |
QuadRadical (Ping) | i wonder if its even worth me doing cross at all | 15:22:40 |
QuadRadical (Ping) | am i better off to do binfmt for everything so i can get the binary cache? | 15:22:50 |
Artturin | I don't use binfmt | 15:22:51 |
Artturin | { crossSystem = lib.systems.examples.aarch64-multiplatform; } | 15:25:28 |
Artturin | or crossSystem = "aarch64-unknown-linux-gnu" or crossSystem.config = "aarch64-unknown-linux-gnu" | 15:27:05 |
Artturin | https://github.com/NixOS/nixpkgs/blob/master/lib/systems/examples.nix | 15:27:26 |
QuadRadical (Ping) | thank you | 17:00:59 |
QuadRadical (Ping) | yeah i got that after you explained what pkgs.path is | 17:01:08 |
| 20 Aug 2025 |
QuadRadical (Ping) | for binfmt though dont i have to set smth globally | 00:42:05 |
QuadRadical (Ping) | dont i need to set boot.binfmt.emulatedSystems? | 00:42:13 |
QuadRadical (Ping) | maybe it would be easiest to build everything on binfmt except for a few packages | 00:44:34 |
| jopejoe1 (4094@39c3) changed their display name from jopejoe1 (4094@GPN23) to jopejoe1. | 18:50:11 |
| 21 Aug 2025 |
| @creepinson:matrix.org joined the room. | 22:10:34 |
emily | Artturin: does this targetPackages stuff from Rust seem as dodgy stage-wise to you as it does me
prefixForStdenv = stdenv: "${stdenv.cc}/bin/${stdenv.cc.targetPrefix}";
ccPrefixForStdenv =
stdenv: "${prefixForStdenv stdenv}${if (stdenv.cc.isClang or false) then "clang" else "cc"}";
cxxPrefixForStdenv =
stdenv: "${prefixForStdenv stdenv}${if (stdenv.cc.isClang or false) then "clang++" else "c++"}";
setBuild = "--set=target.${stdenv.buildPlatform.rust.rustcTarget}";
setHost = "--set=target.${stdenv.hostPlatform.rust.rustcTarget}";
setTarget = "--set=target.${stdenv.targetPlatform.rust.rustcTarget}";
ccForBuild = ccPrefixForStdenv pkgsBuildBuild.targetPackages.stdenv;
cxxForBuild = cxxPrefixForStdenv pkgsBuildBuild.targetPackages.stdenv;
ccForHost = ccPrefixForStdenv pkgsBuildHost.targetPackages.stdenv;
cxxForHost = cxxPrefixForStdenv pkgsBuildHost.targetPackages.stdenv;
ccForTarget = ccPrefixForStdenv pkgsBuildTarget.targetPackages.stdenv;
cxxForTarget = cxxPrefixForStdenv pkgsBuildTarget.targetPackages.stdenv;
| 22:29:41 |
Artturin | In reply to @emilazy:matrix.org
Artturin: does this targetPackages stuff from Rust seem as dodgy stage-wise to you as it does me
prefixForStdenv = stdenv: "${stdenv.cc}/bin/${stdenv.cc.targetPrefix}";
ccPrefixForStdenv =
stdenv: "${prefixForStdenv stdenv}${if (stdenv.cc.isClang or false) then "clang" else "cc"}";
cxxPrefixForStdenv =
stdenv: "${prefixForStdenv stdenv}${if (stdenv.cc.isClang or false) then "clang++" else "c++"}";
setBuild = "--set=target.${stdenv.buildPlatform.rust.rustcTarget}";
setHost = "--set=target.${stdenv.hostPlatform.rust.rustcTarget}";
setTarget = "--set=target.${stdenv.targetPlatform.rust.rustcTarget}";
ccForBuild = ccPrefixForStdenv pkgsBuildBuild.targetPackages.stdenv;
cxxForBuild = cxxPrefixForStdenv pkgsBuildBuild.targetPackages.stdenv;
ccForHost = ccPrefixForStdenv pkgsBuildHost.targetPackages.stdenv;
cxxForHost = cxxPrefixForStdenv pkgsBuildHost.targetPackages.stdenv;
ccForTarget = ccPrefixForStdenv pkgsBuildTarget.targetPackages.stdenv;
cxxForTarget = cxxPrefixForStdenv pkgsBuildTarget.targetPackages.stdenv;
I recall there being more of xPkgs.targetPackages in nixpkgs | 23:43:06 |
Artturin | * I recall there being more of xPkgs.targetPackages.stdenv in nixpkgs | 23:44:30 |
| 22 Aug 2025 |
| RichInOverdraft joined the room. | 00:43:13 |
emily | but... is it wrong? :) | 10:57:33 |