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
Issue description
Some derivations (e.g.
xz) forcedoCheck = true, which naturally fails while cross-compiling. Presumably these should instead forcedoCheck = stdenv.hostPlatform == stdenv.buildPlatform? @Ericson2314, thoughts?Steps to reproduce
Technical details
nix-env (Nix) 1.11.8