-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
Closed
Labels
6.topic: cross-compilationBuilding packages on a different platform than they will be used onBuilding packages on a different platform than they will be used on
Description
Issue description
Some derivations (e.g. xz) force doCheck = true, which naturally fails while cross-compiling. Presumably these should instead force doCheck = stdenv.hostPlatform == stdenv.buildPlatform? @Ericson2314, thoughts?
Steps to reproduce
$ cat test.nix
let
crossSystem = {
config = "arm-unknown-linux-gnueabihf";
arch = "armv7";
libc = "glibc";
withTLS = true;
openssl.system = "linux-generic32";
platform = nixpkgsCross.pkgs.platforms.armv7l-hf-multiplatform // {
baseKernelConfig = "xilinx_zynq_defconfig";
};
};
nixpkgsCross = (import ./nixpkgs) { system = builtins.currentSystem; crossSystem = crossSystem; };
in nixpkgsCross.xz
$ nix-build test.nix
Technical details
- System: Debian 9
- Nix version:
nix-env (Nix) 1.11.8 - Nixpkgs version: 4d20f42
- Sandboxing enabled: No
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
6.topic: cross-compilationBuilding packages on a different platform than they will be used onBuilding packages on a different platform than they will be used on