Commit Graph

43 Commits

Author SHA1 Message Date
Alyssa Ross
e3e57b8f18 lib.systems: elaborate Rust metadata
We need this stuff to be available in lib so make-derivation.nix can
access it to construct the Meson cross file.

This has a couple of other advantages:

 - It makes Rust less special.  Now figuring out what Rust calls a
   platform is the same as figuring out what Linux or QEMU call it.

 - We can unify the schema used to define Rust targets, and the schema
   used to access those values later.  Just like you can set "config"
   or "system" in a platform definition, and then access those same
   keys on the elaborated platform, you can now set "rustcTarget" in
   your crossSystem, and then access "stdenv.hostPlatform.rustcTarget"
   in your code.

"rustcTarget", "rustcTargetSpec", "cargoShortTarget", and
"cargoEnvVarTarget" have the "rustc" and "cargo" prefixes because
these are not exposed to code by the compiler, and are not
standardized.  The arch/os/etc. variables are all named to match the
forms in the Rust target spec JSON.

The new rust.target-family only takes a list, since we don't need to
worry about backwards compatibility when that name is used.

The old APIs are all still functional with no warning for now, so that
it's possible for external code to use a single API on both 23.05 and
23.11.  We can introduce the warnings once 23.05 is EOL, and make them
hard errors when 23.11 is EOL.
2023-11-09 10:02:24 +01:00
Ben Wolsieffer
83ac9c07e4 rust: add support for armv6l-linux and armv7l-linux 2019-11-23 19:19:31 -05:00
taku0
97f20c3011 rust: keep multiple version.
Firefox 70.0.1 and Thunderbird 68.2.2 require older version of rustc.
2019-11-08 21:12:01 +09:00
Eelco Dolstra
14ee26ccf5 rustc: 1.38.0 -> 1.39.0 2019-11-07 15:04:06 +01:00
Eelco Dolstra
9c0968fd81 rustc: 1.37.0 -> 1.38.0 2019-09-26 16:34:48 +02:00
volth
35d68ef143 treewide: remove redundant quotes 2019-08-26 21:40:19 +00:00
Eelco Dolstra
a4fc84de44 rustc: 1.36.0 -> 1.37.0 2019-08-16 14:10:13 +02:00
Eelco Dolstra
2c0a6e1ea0 rustc: 1.35.0 -> 1.36.0 2019-07-07 15:18:09 +02:00
Eelco Dolstra
513bd49b44 rustc: 1.34.2 -> 1.35.0 2019-07-03 08:52:27 +02:00
Ivan Kozik
a0c1b7be7d rustc: 1.33.0 -> 1.34.0 2019-04-12 16:32:19 +00:00
Luka Blaskovic
8d3e91077b rust: 1.32.0 -> 1.33.0 2019-03-01 07:56:40 +00:00
Luka Blaskovic
cc5b55f944 rust: 1.31.0 -> 1.32.0 2019-01-22 08:05:17 +00:00
Jörg Thalheim
84557733f7
rust: Remove unused buildRustPackage from binaryBuild.nix 2018-12-18 06:07:57 +01:00
Jörg Thalheim
3a5b4a631d
rustc: 1.30.1 -> 1.31.0 2018-12-06 22:22:10 +00:00
Alyssa Ross
934e489401
rust: 1.30.0 -> 1.30.1 2018-11-09 15:27:52 +00:00
Jörg Thalheim
cafecf16af
rust: 1.29.1 -> 1.30.0 2018-10-26 10:37:46 +01:00
Symphorien Gibol
ffafe959ee rustc: 1.27 -> 1.29 2018-09-14 14:22:56 +02:00
John Ericson
2c2f1e37d4 reewide: Purge all uses stdenv.system and top-level system
It is deprecated and will be removed after 18.09.
2018-08-30 17:20:32 -04:00
Jörg Thalheim
cbdd14bdc8 rustc: 1.26.2 -> 1.27.0 2018-06-21 17:20:37 -05:00
jD91mZM2
810e6759c2
rustc: 1.26.1 -> 1.26.2 2018-06-06 07:29:09 +02:00
jD91mZM2
fd95f532e0
rust: 1.25.0 -> 1.26.1 2018-06-04 22:07:16 +02:00
Bastian Köcher
0c181bb290 rustc: 1.24.0 -> 1.25.0 2018-04-06 17:05:40 +02:00
Jörg Thalheim
f61e8d98ff
rust: 1.22.1 -> 1.24.0 2018-02-20 09:59:26 +00:00
Tuomas Tynkkynen
222f905fd9 rustc: Supports ARMv7 2018-01-16 14:17:40 +02:00
zimbatm
8559dd0474 rustc: 1.21.0 -> 1.22.1
* removed --enable-clang as it has disappeared
* removed old fixes that have been integrated in upstream
2018-01-09 03:37:53 +01:00
Tuomas Tynkkynen
491e5d8649 rustc: Support aarch64 2017-12-02 14:46:33 +02:00
Daiderd Jordan
399a22e984
Merge pull request #31175 from yrashk/rust-1.21
rust: 1.20.0 -> 1.21.0
2017-11-17 22:31:49 +01:00
Yurii Rashkovskii
2805444f96 rust: 1.20.0 -> 1.21.0 2017-11-03 13:29:20 +07:00
Daiderd Jordan
c72b22c420
rust-bootstrap: cleanup darwin expressions 2017-11-01 15:51:40 +01:00
zimbatm
7bd191df6a rust: 1.17.0 -> 1.20.0
simplify the boostrap hashes a bit

build with bundled llvm:

the rust project has forked the llvm compiler to solve some
issues.
With pkgs.llvm the test suite fails.

See https://github.com/rust-lang/rust/pull/43026

And PR #30088
2017-10-23 00:30:46 +01:00
Graham Christensen
ba9c71b999
rustc.bootstrap: 1.17.0 -> 1.16.0
bootstrapping rust requires the prior version of rust according to #rust-internals

they theorize this could be causing the build problems on i686
2017-06-15 19:57:00 -04:00
Anders Papitto
1e0866e064 rust: 1.15.0 -> 1.17.0
Also updates beta, nightly, nightlyBin, and bootstrap compilers.
Also updates the registry.
Also consolidates logic between bootstrap and nightlyBin compilers.
Also contains some miscellaneous cleanups.
Also patches firefox to build with the newer cargo
2017-06-10 15:15:50 -07:00
Tuomas Tynkkynen
1508945755 treewide: Fix eval-release.nix for aarch64 2017-03-09 03:38:04 +02:00
Tadas Barzdzius
c4bb0c7bb4 rustc, cargo: 1.14.0 -> 1.15.0, 0.15.0 -> 0.16.0 2017-02-03 15:53:09 +02:00
Tadas Barzdzius
7fa4b0f2c9 rustc: 1.13.0 -> 1.14.0 2016-12-29 09:55:38 +02:00
Tadas Barzdzius
0f51eb58ee rustc, cargo: 1.12.1 -> 1.13.0, 0.13.0 -> 0.14.0 2016-11-16 13:25:19 +02:00
Tim Steinbach
b116f9b0cd
rust: 1.11.0 -> 1.12.0, cargo: 0.12.0 -> 0.13.0 2016-10-10 21:59:26 -04:00
Moritz Ulrich
8cd3e1e2ba rustc: 1.10.0 -> 1.11.0 and beta/unstable updates.
Give cargo the right name.

Fix versioning.

rustBeta: -> 2016-08-17

Looks like rustUnstable.rustc needs *exactly* this version.
2016-08-27 08:24:16 +02:00
Moritz Ulrich
3324123eb7 rustc-bootstrap: Use optionalString. 2016-08-10 21:16:48 +02:00
Daiderd Jordan
2b806e9b71 rustc: Set TMPDIR on Darwin to fix build. 2016-08-10 21:16:48 +02:00
Moritz Ulrich
12fe154953 rust-bootstrap: Don't run patchelf on darwin. 2016-08-10 21:16:37 +02:00
Moritz Ulrich
8c45378cde rustc: 1.9.0 -> 1.10.0, cargo: 0.10.0 -> 0.11.0 2016-07-13 20:08:05 +02:00
David Craven
54f80775cb rust: Refactoring of rust and cargo packages 2016-06-15 12:47:13 +02:00