!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

571 Members
125 Servers

Load older messages


SenderMessageTime
1 Jan 2026
@symphorien:xlumurb.eusymphorienwhen building pkgsCross.aarch64-multiplatform.opencv on x86_64, cmake and your hook are called with and stdenv with build=host=x86_64 and target=aarch64 whereas opencv is called with a stdenv with build=x86_64 and host=aarch64 and target is ill-defined17:54:28
@symphorien:xlumurb.eusymphorienthen how do you plan for each derivation to choose the correct toolchain.cmake ?17:55:20
@qyliss:fairydust.spaceAlyssa RossYou will find a lot of agreement on this.17:58:21
@qyliss:fairydust.spaceAlyssa RossWe've moved away from implicit hooks for newer build systems17:58:31
@qyliss:fairydust.spaceAlyssa Ross In favour of having an e.g. cmakeBuildHook that does all the automatic stuff, and which can be built separately. 17:59:16
@sielicki:matrix.orgsielicki symphorien: I don't think we even need to write the toolchain to the nix store as a derivation. I'm kind of spitballing here, but I guess this could just be a pure nix string handled by the existing lib.systems.parse code 18:00:35
@sielicki:matrix.orgsielickithanks all for the input, I'll play around a bit more with this18:03:16
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Speaking of the current cmake situation, the system where cmakeFlags and mesonFlags are constructed in make-derivation has quite big overhead. makeCMakeFlags and makeMesonFlags are one of the hotter functions in the whole of nixpkgs18:03:17
@xokdvium:matrix.orgSergei Zimmerman (xokdvium) It would be nice if the hooks were bound to the stdenv and were memorised accordingly 18:03:51
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)* It would be nice if the hooks were bound to the stdenv and were memoised accordingly18:04:04
@zimward:zimward.moezimwardcan someone explain to me why i get a gcc that targets x86_64-linux in a derivation from a stdenv that has riscv32-none-elf as its target?18:06:22
23 May 2021
@grahamc:nixos.org@grahamc:nixos.org set the history visibility to "world_readable".12:31:03
@grahamc:nixos.org@grahamc:nixos.org changed the room name to "" from "".12:31:03
@grahamc:nixos.org@grahamc:nixos.org invited @qyliss:fairydust.spaceAlyssa Ross.12:31:18
@qyliss:fairydust.spaceAlyssa Ross joined the room.13:21:04
@symphorien:xlumurb.eusymphorien joined the room.13:29:22
@joe:monoid.aljoe joined the room.13:29:32
@cleverca22:matrix.orgcleverca22 joined the room.13:29:44
@andi:kack.itandi- joined the room.13:36:08
@sternenseemann:systemli.orgsterni (he/him) joined the room.13:39:12
@server_stats:nordgedanken.devServer Stats Discoverer (traveler bot) joined the room.14:52:21
@milan:petabyte.devMilan (they/them) 🏳️‍⚧️ joined the room.14:52:24
@thefloweringash:matrix.orgthefloweringash joined the room.14:52:43
@milan:petabyte.devMilan (they/them) 🏳️‍⚧️ changed their profile picture.18:30:44
@maljub01:matrix.orgmaljub01 joined the room.20:05:19
@colemickens:matrix.orgcolemickens 🏳️‍🌈 joined the room.21:50:09
24 May 2021
@voyager:t2bot.ioMatrix Traveler (bot) joined the room.03:05:08
@rajivr:matrix.orgrajivr joined the room.03:35:42
@kunrooted:matrix.orgkunrooted joined the room.05:17:10
@aaronjanse:matrix.orgaaronjanse joined the room.07:04:03

Show newer messages


Back to Room ListRoom Version: 6