Commit Graph

135 Commits

Author SHA1 Message Date
Philip Taron
30ad443519
Avoid top-level with ...; in pkgs/top-level/release-cross.nix
Also, `inherit (lib) ...;` and `inherit (builtins) ...;` to create
smaller expressions in this file.
2024-03-08 14:55:07 -08:00
Weijia Wang
0c9d7dad11 windows.wxMSW: drop 2024-01-06 01:09:13 +01:00
John Ericson
10d6d56743 release-cross.nix: test cross compilation to x86_64-freebsd
PR #138711 added NetBSD. FreeBSD has come a long ways since the last
release. It would be good to have this cached for 23.05.
2023-05-19 07:02:32 -04:00
Rick van Schijndel
5d74e13d2c
Merge pull request #228297 from amjoseph-nixpkgs/pr/release-cross/comment
pkgs/top-level/release-cross.nix: comment explaining how to build all bootstrapFiles
2023-05-09 20:03:35 +02:00
Adam Joseph
5838729f9e release-cross.nix: fix the fix in #188339
The `bootstrapTools.bootstrapTools` attribute, which *unpacks* the
bootstrapFiles, lies about its `system`:

  78963777a4/pkgs/stdenv/linux/make-bootstrap-tools.nix (L236)

Unfortunately because of this, when building `bootstrapTools.*`,
Hydra will try to execute the cross-compiled bootstrapFiles'
`busybox` on the wrong architecture, and fail.

I originally submitted a fix for this, by filtering out the
`.bootstrapTools` attribute, in
https://github.com/NixOS/nixpkgs/pull/188339

Unfortunately my fix filtered at the wrong level of the attrset
hierarchy, and neglected to filter the `test` attribute as well.
This PR corrects those mistakes
2023-05-07 00:11:56 -07:00
Weijia Wang
4d96aad99b release-cross.nix: add loongarch64-linux 2023-05-02 23:20:26 +03:00
Adam Joseph
69fbab6f19 pkgs/top-level/release-cross.nix: comment explaining how to build all bootstrapFiles 2023-04-26 02:55:50 -07:00
Wanja Zaeske
6c615f6957 add rustc and cargo to the cross trunk
Compiling them can take hours, and with rust specifically it's quite common to
cross compile (e.g. to musl/static for easier distribution)
2023-01-17 17:32:03 +01:00
maralorn
bd2b543537
Merge pull request #209043 from sternenseemann/ghc-head-js-backend-try-1
haskellPackages.mkDerivation: make work in pkgsCross.ghcjs
2023-01-05 22:11:08 +01:00
sternenseemann
9b9c8edaf5 release-cross.nix: also test JS backend in ghcjs cross test 2023-01-05 15:38:14 +01:00
Artturin
5a1ffcef5a release-cross.nix: fix error: undefined variable 'platforms' 2023-01-04 16:18:09 +02:00
Adam Joseph
aad971f342 release-cross.nix: nixCrossStatic: do not burden *-darwin builders
PR #181151 added the nixCrossStatic jobs, which cross-compile
nixStatic for (currently) mips64el and powerpc64le, so users on
those platforms can use it to bootstrap their own builds of
nixpkgs/nixos:

  https://github.com/NixOS/nixpkgs/pull/181151

However I unintentionally caused that PR to queue this job on *all*
Hydra builders, including the (heavily burdened) *-darwin builders:

  https://hydra.nixos.org/build/203846776
  https://hydra.nixos.org/build/203846780

There is no need to build these derivations with a darwin
buildPlatform.  Let's limit this task to only buildPlatform=*-linux.
2023-01-03 01:25:05 -08:00
Adam Joseph
b92e8e5997 pkgs/top-level/release-cross.nix: add Hydra jobs for pkgsCross.platform.nixStatic
This commit causes Hydra to build `nixStatic` on non-NixOS platforms
for which nixStatic is known to build correctly.

Providing Hydra builds of `nixStatic` on these platforms allows users
to bootstrap their local nixpkgs system without either having to:

a. Trust binaries that came from a source other than Hydra or

b. Fight with their host distribution to satisfy all of nix's large
   set of build dependencies (this is not easy!)

Currently there are two platforms in this set: mips64el-linux-gnuabi64
and powerpc64le-linux-gnu.
2023-01-02 08:53:59 +01:00
Adam Joseph
63d9913007 release-cross.nix: skip job which requires build.canExec host 2022-08-25 17:53:56 -07:00
Adam Joseph
60fbfadd5b add --arg supportedSystems '[builtins.currentSystem]' 2022-07-11 13:21:00 -07:00
Adam Joseph
2da28c610f release-cross.nix: explain how to run jobs individually 2022-07-11 13:13:30 -07:00
Alyssa Ross
089ff89f49
lib.systems: drop scaleway-c1
These servers apparently no longer exist, since September 2, 2021[1].
If somebody needs this for non-Scaleway machines, they should suggest
its reintroduction with a different name.

[1]: https://news.ycombinator.com/item?id=27192757
2022-05-27 12:02:39 +00:00
yvt
bf139d83ec
systems: support cross-compiling for Renesas RX microcontrollers (#173858) 2022-05-22 20:52:36 -04:00
Alyssa Ross
8d6c60001c
release-cross.nix: fix RISC-V embedded
This was previously using the "riscv32" and "riscv64" examples, which
are Linux platforms, not embedded platforms.
2022-05-20 15:21:04 +00:00
Jörg Thalheim
8e09025284
Merge pull request #147605 from sternenseemann/cross-jobset-extension
release-cross.nix: add jobs for missing lib.systems.examples
2021-12-09 17:12:36 +00:00
sternenseemann
8580bda686 libcpuid: fix cross compilation to NetBSD
Applies an upstreamed patch which works around a double definition of
popcount64. This change is all needed to cross compile nix to NetBSD, so
we can extend the cross-trunk jobset as well.
2021-12-02 14:41:38 +01:00
sternenseemann
4a21fcfa61 release-cross.nix: add jobs for missing lib.systems.examples
Adding something to lib.systems.examples means that it'll be exposed via
pkgsCross to users quite prominently. As a result we should try to
provide binary cache for at least the toolchains on a best effort
basis.

This commit syncs release-cross.nix with (new?) cross targets added to
lib.systems.examples in the meantime. We for example didn't have a
prebuilt toolchain for riscv64.
2021-11-27 16:35:55 +01:00
sternenseemann
547f1386d3 release-cross.nix: test cross compilation to x86_64-netbsd 2021-09-28 08:47:36 +00:00
Ryan Burns
0ef31a870d release-cross: add ppc64le, ppc64le-musl
Our support for ppc64le is pretty good now.
Let's add these so it's easier to spot and rectify breakage.

The toolchains are already built for their bootstrap tools,
so this shouldn't put much build strain on hydra.
2021-01-28 19:34:10 -08:00
Silvan Mosberger
c1e96ff74f
release*: Support nixpkgsArgs for all release-*.nix files
This is a bit dirty because there's no easy way to propagate these
function arguments while still allowing --arg from the command line
2020-09-11 18:22:01 +02:00
Aaron Janse
e1f7d9461b pkgs/top-level: add x86_64-redox 2020-07-26 04:46:22 -07:00
John Ericson
891662e829 Merge branch 'ghcjs-cross-without-cc-19.09' into ghcjs-cross-without-cc 2019-12-24 17:55:35 -05:00
John Ericson
d3ecd5bde5 release-cross.nix: Add GHCJS-built hello 2019-12-24 17:54:04 -05:00
Matthew Bauer
67b5f75672 top-level/release-cross.nix: add android32 2019-10-01 13:05:10 -04:00
Matthew Bauer
872100cf41
Merge branch 'staging' into release-cross-fixes 2019-05-18 14:57:53 -05:00
Matthew Bauer
490d9fd509 release-cross: use latest stable ghc
Previously on ghc 8.4.4, but we can now use 8.6.5 to address the
issue.
2019-05-12 00:22:01 -04:00
Matthew Bauer
1671eeda2d release-cross: remove androidndk
It is no longer provided
2019-05-08 21:44:46 -04:00
Matthew Bauer
94237b3452 release-cross.nix: add mesa to platforms
mesa is very portable and useful. we should make sure these work on
all of the platforms we support
2019-05-02 21:00:05 -04:00
Matthew Bauer
008c9a70a5 release-cross: add wasi targets
Add a few working cross targets to make sure things keep working.
2019-04-23 21:51:30 -04:00
Matthew Bauer
ae50241871 release-cross: remove alpha-elf target
This doesn’t appear to ever have worked. binutils doesn’t seem to
support the alpha-elf target at all. It doesn’t make sense to keep
this around.

https://hydra.nixos.org/build/92403855/nixlog/1/tail
2019-04-20 17:22:52 -04:00
Aaron Lindsay
1eca945e94 systems: support TI MSP430 microcontrollers 2019-03-25 20:33:58 -07:00
John Ericson
ffa75ae405
Merge pull request #50282 from vincrusher/master
Cross-Compiling: alpha-embedded Support Added
2018-11-12 15:57:23 -05:00
Vincent Weisner
04fe84d239
Cross-Compiling: alpha-embedded Support Added
This commit adds support for Embedded systems with DEC Alpha CPUs.
2018-11-12 15:00:50 -05:00
Matthew Bauer
dfd0818aa5
release-cross: use ghc844 for tests
This GHC version has much better support for cross compilation. It should hopefully fix our mingw breakages from #42407.

/cc @ericson2314
2018-11-03 14:17:21 -05:00
Matthew Bauer
29b4ac8e41 release-corss.nix: fix ppc-embedded name
s/powerpc-embedded/ppc-embedded
2018-11-02 18:42:58 -05:00
John Ericson
e3082c313b Merge remote-tracking branch 'upstream/master' into release-lib-cleanup 2018-11-01 16:47:42 -04:00
John Ericson
79c713bc14 release-lib: Cache cross nixpkgs evals too
This will help with release-cross.nix eval time. It also allowed me to
share code between the cross and native helpers.
2018-11-01 15:35:08 -04:00
Matthew Bauer
2634d37617 systems/examples: add i686 & x86-64 embedded
Fixes #28160
2018-10-30 13:46:01 -05:00
Matthew Bauer
946598d071 release-cross: add new targets
adds:

- arm-embedded
- avr
- aarch64-embedded
- powerpc-embedded
2018-10-29 14:34:10 -05:00
John Ericson
22df9423cd release-cross: Cross compile from all 3 supported platforms 2018-10-23 23:20:48 -04:00
John Ericson
192f4144b2 release-lib: Filter supportedSystems with meta.platforms-style patterns
Instead of intersecting system strings, we filter with the sort of
patterns used in `meta.platforms`.

Indicating this change `forTheseSystems` has been renamed to
`forMatchingSystems`, since the given list is now patterns to match, and
not the systems themselves. [Just as with `meta.platforms`, systems
strings are also supported for backwards compatibility.]

This is more flexible, and makes the `forMatchingSystems` and
packagePlatforms` cases more analogous.
2018-03-19 21:32:28 -04:00
John Ericson
2482e2858e prebuilt android tools: Init using SDK
Expose as an option for the cross stdenv.
2018-02-27 14:15:39 -05:00
Will Dietz
6daf813b1c release-cross: add nix and nixUnstable
Essential software for every platform! :)

'nix' won't work for now,
but add it anyway so later this tests "stable" nix 2.
2018-02-22 08:56:05 -06:00
Will Dietz
76879b83ac release-cross: minor cleanup, add aarch64-musl 2018-02-22 08:33:27 -06:00
Will Dietz
9bc8127dc3 bootstrap-tools-cross, release-cross: add various musl entries 2018-02-13 09:44:56 -06:00