!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

581 Members
127 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
9 May 2025
@curid:matrix.org@curid:matrix.org
let
  # latest unstable
  pkgs = (import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/b3582c75c7f21ce0b429898980eddbbf05c68e55.tar.gz")
    {
      crossSystem = "aarch64-unknown-linux-gnu";
    }).__splicedPackages;
in pkgs.mkShell {
  buildInputs = [ pkgs.cpuid ];
}
src/x86/cpuid.c:138:10: fatal error: cpuid.h: No such file or directory
  138 | #include <cpuid.h>

It seems to build x86 specific files https://github.com/pytorch/cpuinfo/blob/main/CMakeLists.txt

16:15:48
@rosscomputerguy:matrix.orgTristan Ross
  1. Use packages
  2. Add cmake (& optionally ninja) to packages
16:24:51
@curid:matrix.org@curid:matrix.orgI'm stupid, the cpuid package has nothing to do with cpuid.h16:37:11

Show newer messages


Back to Room ListRoom Version: 6