!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

397 Members
92 Servers

Load older messages


SenderMessageTime
11 Sep 2024
@artturin:matrix.orgArtturin
In reply to @artturin:matrix.org
the targetPackages.stdenv.cc is the same offset as gfortran
nix-repl> pkgsCross.aarch64-multiplatform.gfortran.cc.stdenv.cc
«derivation /nix/store/cy0iv1sk4c60df358j3ff8xb2x0db1qh-aarch64-unknown-linux-gnu-gcc-wrapper-13.3.0.drv»

nix-repl> pkgsCross.aarch64-multiplatform.targetPackages.stdenv.cc
«derivation /nix/store/bh6d4yc7dyx1694gz3bx65l0flv1blc2-gcc-wrapper-13.3.0.drv»


nix-repl> pkgsCross.aarch64-multiplatform.targetPackages.stdenv.cc.stdenv.hostPlatform.system
"aarch64-linux"

nix-repl> pkgsCross.aarch64-multiplatform.targetPackages.stdenv.cc.stdenv.targetPlatform.system
"aarch64-linux"

nix-repl> pkgsCross.aarch64-multiplatform.gfortran.cc.stdenv.hostPlatform.system
"aarch64-linux"

nix-repl> pkgsCross.aarch64-multiplatform.gfortran.cc.stdenv.targetPlatform.system
"aarch64-linux"
23:39:29
@artturin:matrix.orgArtturin
In reply to @philiptaron:matrix.org
is there ever a time then that it shouldn't be gfortran, rather than targetPackages.gfortran?
It was made targetPackages just recently 🤔https://github.com/NixOS/nixpkgs/pull/327438
23:39:59
@artturin:matrix.orgArtturinhttps://github.com/nixos/nixpkgs/commit/13e4a573de392bc9466edb7d6ed50dd5557f329223:40:03
@philiptaron:matrix.orgPhilip Taron (UTC-8)I wish there was more in that commit message.23:41:13
@artturin:matrix.orgArtturinAsked23:42:33
@artturin:matrix.orgArtturinOoh nevermind23:43:13
@artturin:matrix.orgArtturin If openmpi goes in nativeBuildInputs then it's valid 23:43:28
@artturin:matrix.orgArtturinprobably23:46:05
12 Sep 2024
@artturin:matrix.orgArtturin
In reply to @artturin:matrix.org
Says it loops at pkgs/top-level/cubocore-packages.nix
but pkgsCross.aarch64-multiplatform.CuboCore or pkgsCross.aarch64-multiplatform.qt5 don't have issues
Created https://github.com/NixOS/nixpkgs/issues/341274
00:05:41
@k900:0upti.meK900
In reply to@artturin:matrix.org
K900: Why haven't we added platforms.windows/mingw to bash badPlatforms?
Why should we?
03:57:47
@k900:0upti.meK900bash on mingw is a thing03:57:52
@artturin:matrix.orgArtturin
In reply to @k900:0upti.me
Why should we?
Because it's been broken for a long time
04:37:09
@k900:0upti.meK900So has been all of mingw tbh04:37:24
@k900:0upti.meK900Someone needs to like04:37:27
@k900:0upti.meK900Actually go hyperfocus on it for a few days04:37:35
@k900:0upti.meK900To get it usable again04:37:40
@artturin:matrix.orgArtturin badPlatforms instead of broken because it works with lib.meta.availableOn 04:37:53
@artturin:matrix.orgArtturin Which makes jackaudio compile because it uses availableOn to choose deps 04:39:28
@artturin:matrix.orgArtturinhttps://github.com/NixOS/nixpkgs/blob/c04982df7d6448c6be709a98d0a4707d2361db92/pkgs/misc/jackaudio/default.nix#L1904:39:30
@artturin:matrix.orgArtturin
In reply to @vramp:matrix.org
when I install pkgsCross.mingwW64.portaudio (on linux) it installs alsa which is surprising, and then fails to find poll.h, which is less surprising
.
04:39:53
@artturin:matrix.orgArtturin(portaudio needs jackaudio)04:41:17
@artturin:matrix.orgArtturinhttps://github.com/NixOS/nixpkgs/pull/341227/files04:41:33
@artturin:matrix.orgArtturinhttps://github.com/NixOS/nixpkgs/pull/34129905:00:52
@artturin:matrix.orgArtturin So uh how are we going to handle .exe in mainProgram? just mainProgram = "expand-response-params${stdenv.hostPlatform.extensions.executable}"; 05:08:14
@k900:0upti.meK900Uhh05:08:35
@k900:0upti.meK900That's a good question lol05:08:38
@artturin:matrix.orgArtturin when x is a derivation we could use stdenv....extensions.executable https://github.com/NixOS/nixpkgs/blob/d6796b28ef1abd4b948c17355b1bf009cf4c7ad0/lib/meta.nix#L433 05:09:54
@artturin:matrix.orgArtturinRedacted or Malformed Event05:10:48
@k900:0upti.meK900I mean technically splicing should take care of this 05:18:55
@k900:0upti.meK900But that is still very cursed 05:19:16

Show newer messages


Back to Room ListRoom Version: 6