summaryrefslogtreecommitdiff
path: root/pkgs/test/cross (follow)
Commit message (Expand)AuthorAgeFilesLines
* tests.cross.sanity: fix eval•••`qt5` is not long for the world. Philip Taron2025-09-131-2/+2
* treewide: run nixfmt 1.0.0Wolfgang Walther2025-07-241-34/+33
* tests.cross.{gcc,llvm}.*: don't recurse into•••Makes the ci get killed by OOM jopejoe12025-05-131-1/+1
* tests: recurse into more attrs•••This makes it so that our ci evals more tests and that hydra builds them, making it possible to catch more regressions. jopejoe12025-05-131-24/+30
* treewide: format all inactive Nix files•••After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-build https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \ --argstr baseRev b32a0943687d2a5094a6d92f25a4b6e16a76b5b7 result/bin/apply-formatting $NIXPKGS_PATH Silvan Mosberger2024-12-101-123/+173
* tests.cross.sanity: Add GHC to catch regressions•••This is to ensure that Haskell users on platforms that lack official bindists still have a convenient means of getting GHC running natively. In my admittedly somewhat limited testing on RISC-V, GHC 8.10.7 is able to bootstrap native builds for 9.2.8 and 9.4.5. GHC 9.2.8 and 9.4.5 are unable to bootstrap themselves and 9.6.2 when cross-compiled. If you're looking at this commit to see whether you can safely upgrade the compiler used here to remove 8.10, please try cross-compiling 9.0 or later and then booting a native GHC with it. Alex Tunstall2024-09-081-0/+2
* tests.cross.sanity: fix eval by fixing `qt5.qutebrowser` reference•••Without the change the eval fails as: $ nix build --no-link -f. tests.cross.sanity error: attribute 'qutebrowser' missing at pkgs/test/cross/default.nix:157:5: 156| # Two web browsers -- exercises almost the entire packageset 157| pkgs.pkgsCross.aarch64-multiplatform.qt5.qutebrowser | ^ 158| pkgs.pkgsCross.aarch64-multiplatform.firefox Sergei Trofimovich2024-01-251-1/+1
* tests.cross.sanity: add test case for #267859•••This commit adds pkgs.spike, which internally uses pkgsCross.riscv64-embedded.stdenv.cc, as a test case for the issue reported in https://github.com/NixOS/nixpkgs/issues/267859 Adam Joseph2023-11-161-0/+3
* test.cross.sanity: add qt5.qutebrowser, firefoxAdam Joseph2023-11-051-0/+4
* lib.systems, test.cross.sanity: add test case for #264989•••We have several cross-compilation bugs that show up if hostPlatform!=buildPlatform yet hostPlatform.config==buildPlatform.config. These bugs have appeared and disappeared as we've fiddled with the definition of equality for platform objects. This commit adds a clear-cut case where they are *not* equal and never will be, so we can test it. Adam Joseph2023-11-041-0/+1
* tests: fix eval failuresArtturin2023-11-041-4/+4
* tests.cross.sanity: add pkgs.pkgsMusl.pkgsCross.gnu64.hello (#262876)Adam Joseph2023-11-031-0/+6
* gcc: create dummy crtstuff on S390 as well•••This commit replicates the fix in https://github.com/NixOS/nixpkgs/pull/258032 for S390 as well. Co-authored-by: Artturi <Artturin@artturin.com> Adam Joseph2023-10-251-0/+1
* tests.cross.sanity: add armv5tel and armv6lAdam Joseph2023-08-151-0/+2
* tests.cross.sanity: enable mbuffer test•••This test passes now. Also fixes a minor oversight in the bug -- the test case needs to `touch $out` on success. Adam Joseph2023-08-141-1/+2
* libgcc: make needed architecture-specific targets if isArmv7Adam Joseph2023-08-141-0/+1
* gccWithoutTargetLibc: link libgcc_s.so using -mnewlib if isPower•••Closes #244405 Also adds considerably more commenting to document what is going on. Adam Joseph2023-07-061-1/+1
* test.cross.sanity: add pkgs.pkgsCross.m68k.stdenvAdam Joseph2023-07-011-0/+1
* test.cross.sanity: init•••This commit adds `pkgs.test.cross.sanity`, which is meant to be a carefully curated list of builds/packages that tend to break when refactoring our cross-compilation infrastructure. It should strike a balance between being small enough to fit in a single eval (i.e. not so large that hydra-eval-jobs is needed) so we can ask @ofborg to check it, yet should have good examples of things that often break. So, no buckshot `mapTestOnCross` calls here. Adam Joseph2023-07-011-4/+30
* test.cross.mbuffer: init•••This adds a test case for the tricky issue encountered in https://github.com/NixOS/nixpkgs/issues/213453 Adam Joseph2023-06-301-0/+10
* treewide: {build,host,target}Platform -> stdenv.{build,host,target}PlatformArtturin2023-01-091-2/+2
* pkg-config-wrapper: Init•••This fixes longstanding build issues John Ericson2020-05-161-0/+14
* cross/tests: Use `crossPkgs.runCommand` so we have `strictDeps`John Ericson2020-05-161-1/+1
* wasm: init cross target•••Adds pkgsCross.wasm32 and pkgsCross.wasm64. Use it to build Nixpkgs with a WebAssembly toolchain. stdenv/cross: use static overlay on isWasm isWasm doesn’t make sense dynamically linked. Matthew Bauer2019-04-231-5/+4
* cross/tests: add llvm-based testsMatthew Bauer2019-02-261-20/+24
* llvm: support cross compilation with useLLVM flag•••You can build (partially) with LLVM toolchain using the useLLVM flag. This works like so: nix-build -A hello --arg crossSystem '{ system = "aarch64-unknown-linux-musl"; useLLVM = true }' also don’t separate debug info in lldClang It doesn’t work currently with that setup hook. Missing build-id? Matthew Bauer2019-02-261-0/+6
* treewide: add emulator to platform•••You can use stdenv.hostPlatform.emulator to get an executable that runs cross-built binaries. This could be any emulator. For instance, we use QEMU to emulate Linux targets and Wine to emulate Windows targets. To work with qemu, we need to support custom targets. I’ve reworked the cross tests in pkgs/test/cross to use this functionality. Also, I’ve used talloc to cross-execute with the emulator. There appears to be a cross-execute for all waf builds. In the future, it would be nice to set this for all waf builds. Adds stdenv.hostPlatform.qemuArch attrbute to get the qemuArch for each platform. Matthew Bauer2018-11-291-26/+36
* tests: add some cross testsMatthew Bauer2018-07-211-0/+80