Commit Graph

25 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
teor
0ad13637b7
zcash: 5.3.0 -> 5.4.2 (#216422)
Co-authored-by: root <root@dev>
2023-03-27 01:43:13 +02:00
Artturin
2eeb34c273 treewide: {build,host,target}Platform -> stdenv.{build,host,target}Platform 2023-01-09 21:13:22 +02:00
Alex Wied
e50d949516 zcash: 5.1.0 -> 5.3.0 2022-10-26 22:17:27 -04:00
Ivar Scholten
7ca1c4517b zcash: update reference to cargoDepsCopy 2022-09-25 16:17:36 +02:00
Alex Wied
5f564536bb zcash: 5.0.0 -> 5.1.0 2022-07-22 19:45:44 -04:00
Alex Wied
be92c8ae8a zcash: 4.7.0 -> 5.0.0 2022-05-13 19:59:04 -04:00
Alex Wied
bfecfa9613 zcash: 4.6.0-2 -> 4.7.0 2022-04-28 14:35:54 -04:00
Alex Wied
5874035621 zcash: 4.6.0-1 -> 4.6.0-2 2022-04-13 19:04:36 -04:00
Alex Wied
4fb58529f6 zcash: 4.5.1 -> 4.6.0-1 2022-01-15 01:55:32 -05:00
Alex Wied
b40b3057fe zcash: 4.5.0 -> 4.5.1 2021-09-29 21:53:44 -04:00
Alex Wied
90c2286300 zcash: 4.4.1 -> 4.5.0 2021-09-27 14:38:20 -04:00
Alex Wied
27f7ec0d70 zcash: 4.4.0 -> 4.4.1 2021-07-05 10:50:45 -04:00
Alex Wied
22fb4458c0
zcash: 4.3.0 -> 4.4.0 (#119579)
Co-authored-by: Alex Wied <alexwied@coinmetrics.io>
2021-04-16 01:25:59 +02:00
Alex Wied
abb6266dbc
zcash: 4.1.1 -> 4.3.0 (#115463)
* zcash: 4.1.1 -> 4.3.0

* zcash: Remove unused argument
2021-03-14 13:43:48 -04:00
Alyssa Ross
17afca5885
zcash: 2.1.1-1 -> 4.1.1; fix build
This is pretty much a repackaging, because a lot has changed about
zcash in two major versions.  Lots of libraries are no longer
necessary, and librustzcash is now part of the zcash package as
opposed to being a library supposed to be built seperately.

The whole thing is a buildRustPackage because that's easier than
trying to emulate buildRustPackage's dependency setup behaviour inside
a normal mkDerivation.  So that the normal zcash build process is
followed, the actual configuring and building uses the normal stdenv
behaviour.
2020-12-19 01:21:13 +00:00
Graham Christensen
bc49a0815a
utillinux: rename to util-linux 2020-11-24 12:42:06 -05:00
Maximilian Bosch
e1053cb071
librustzcash: improve robustness of installPhase 2020-04-12 14:06:02 -07:00
Benjamin Hipple
bd1b24b5b1 zcash: 2.1.0-1 -> 2.1.1-1
Also enabled parallel building, because otherwise this takes 45+ minutes to
compile! With it enabled, it can build in a couple minutes.
2020-03-07 12:24:19 -05:00
Benjamin Hipple
176d90e0c8 librustzcash: 2018-10-27 -> 0.1.0
Also includes updates for:

- https://github.com/NixOS/nixpkgs/issues/79975
- https://github.com/NixOS/rfcs/pull/45
2020-03-07 12:21:22 -05:00
Benjamin Hipple
eb11feaa0b treewide: change fetchCargoTarball default to opt-out
Changes the default fetcher in the Rust Platform to be the newer
`fetchCargoTarball`, and changes every application using the current default to
instead opt out.

This commit does not change any hashes or cause any rebuilds. Once integrated,
we will start deleting the opt-outs and recomputing hashes.

See #79975 for details.
2020-02-13 22:41:37 -08:00
Thomas Kerber
4f3e74a7a2 zcash: 1.0.13 -> 2.1.0-1 2019-11-26 00:01:37 +01:00
Craige McWhirter
2c9bab7ec2
zcash: Add libsnark to stop build failures
Wanted for #68361

zcash build fails due to missing `profiling.hpp` which is provided by
`libsnark`.
2019-09-12 16:03:48 +10:00
volth
7bb6b373ab treewide: name -> pname (#67513) 2019-08-31 07:41:22 -04:00
William Casarin
72682e4654 tree: rename altcoins to blockchains
Signed-off-by: William Casarin <jb55@jb55.com>
2019-08-29 05:01:42 -07:00